tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cookies and kmem_alloc



Hi,

The directory functions pass around ap_cookies, and ap_ncookies, but
if one uses kmem_alloc() instead of malloc(), there is no way to kmem_free()
the buffer, since we don't pass the size. I suggest that we add a new
field called ap_acookies, which holds the size we allocated with kmem_alloc(),
or it is 0 for compatibility for code that allocated the cookie buffer with
malloc(). Any better ideas?

christos


Home | Main Index | Thread Index | Old Index