struct sock * sk_alloc (int family, int priority, int zero_it, kmem_cache_t * slab);
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).