SK_ALLOC

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

sk_alloc - All socket objects are allocated here  

SYNOPSIS

"SYNOPSIS"

struct sock * sk_alloc (int family, int priority, int zero_it, kmem_cache_t * slab);  

ARGUMENTS

family
-- undescribed --
priority
-- undescribed --
zero_it
-- undescribed --
slab
-- undescribed --
 

DESCRIPTION

family - protocol family priority - for allocation (GFP_KERNEL, GFP_ATOMIC, etc) zero_it - zeroes the allocated sock slab - alternate slab

All socket objects are allocated here. If zero_it is non-zero it should have the size of the are to be zeroed, because the private slabcaches have different sizes of the generic struct sock. 1 has been kept as a way to say sizeof(struct sock).


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:56 GMT, October 06, 2005