Pass NULL to objcache_create() to indicate that null_ctor() and/or null_dtor()
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 17 Dec 2006 19:28:32 +0000 (19:28 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 17 Dec 2006 19:28:32 +0000 (19:28 +0000)
commit5b7da64a5ce14b039108ebfcde166116005d7288
treeabafff9103c4f008eccf7c0662b12154e090bfea
parent476d885dc5d9bff268f1c720c29b39c0682bfd39
Pass NULL to objcache_create() to indicate that null_ctor() and/or null_dtor()
should be used.  Make null_ctor() and null_dtor() private functions.

Disallow M_ZERO entirely, it doesn't really fit the objcache model.

With-input-from: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>,
 "Thomas E. Spanjaard" <tgen@netphreax.net>,
 Jeffrey Hsu <hsu@crater.dragonflybsd.org>
sys/dev/disk/nata/ata-all.c
sys/kern/kern_objcache.c
sys/kern/uipc_mbuf.c
sys/sys/objcache.h