cvs commit: src/sys/dev/disk/nata ata-all.c

Simon 'corecode' Schubert corecode at
Wed Dec 13 14:09:39 PST 2006

Matthew Dillon wrote:
:tgen        2006/12/13 04:41:36 PST
:DragonFly src repository
:  Modified files:
:    sys/dev/disk/nata    ata-all.c 
:  Log:
:  Explicitly specify null_dtor as our objcache destructor. Fixes a panic when
:  we were out of empty magazines.

    I'll clean this all up in a moment.  It's better for the API to pass NULL
    and have null_ctor and null_dtor be static procedures within 
    kern_objcache.c then to have to pass them explicitly.
why do we have to call the ctor and dtor anyways?  why not do if (oc->ctor) oc->ctor(obj); ?  or am i missing something important there?

Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |      Against  HTML   \
Dude 2c 2 the max   !       Mail + News   / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00003.pgp
Type: application/octet-stream
Size: 252 bytes
Desc: "Description: OpenPGP digital signature"
URL: <>

More information about the Commits mailing list