cregit-Linux how code gets into the kernel

Release 4.8 net/xfrm/xfrm_hash.c

Directory: net/xfrm
/* xfrm_hash.c: Common hash table code.
 *
 * Copyright (C) 2006 David S. Miller (davem@davemloft.net)
 */

#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/xfrm.h>

#include "xfrm_hash.h"


struct hlist_head *xfrm_hash_alloc(unsigned int sz) { struct hlist_head *n; if (sz <= PAGE_SIZE) n = kzalloc(sz, GFP_KERNEL); else if (hashdist) n = vzalloc(sz); else n = (struct hlist_head *) __get_free_pages(GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO, get_order(sz)); return n; }

Contributors

PersonTokensPropCommitsCommitProp
david s. millerdavid s. miller6291.18%125.00%
joonwoo parkjoonwoo park34.41%125.00%
herbert xuherbert xu22.94%125.00%
eric dumazeteric dumazet11.47%125.00%
Total68100.00%4100.00%


void xfrm_hash_free(struct hlist_head *n, unsigned int sz) { if (sz <= PAGE_SIZE) kfree(n); else if (hashdist) vfree(n); else free_pages((unsigned long)n, get_order(sz)); }

Contributors

PersonTokensPropCommitsCommitProp
david s. millerdavid s. miller50100.00%1100.00%
Total50100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
david s. millerdavid s. miller13495.71%125.00%
joonwoo parkjoonwoo park32.14%125.00%
herbert xuherbert xu21.43%125.00%
eric dumazeteric dumazet10.71%125.00%
Total140100.00%4100.00%
Directory: net/xfrm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.