cregit-Linux how code gets into the kernel

Release 4.11 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. Miller6291.18%125.00%
Joonwoo Park34.41%125.00%
Herbert Xu22.94%125.00%
Eric 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. Miller50100.00%1100.00%
Total50100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
David S. Miller13495.71%125.00%
Joonwoo Park32.14%125.00%
Herbert Xu21.43%125.00%
Eric 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.
Created with cregit.