meaning of 'struct proto' .obj_size and it's use
I'm not clear on one of the network protocol structures and hoping someone can explain. In 'struct proto', what should the .obj_size member field refer to?
I see in much of the kernel source where protocols refer to their custom sturcture which always includes 'struct sock', but I'm not realy clear on how obj_size gets used. |
Looking at the sock.h file, I see that the obj_size member occurs in the /* Memory Pressure */ section:
Code:
struct kmem_cache *slab; Look at mempool.h and slab.h for details. Note: I'm not an expert (or even a user) of this code, and my comments flow only from a brief look at some of it. |
All times are GMT -5. The time now is 06:57 AM. |