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

Simon 'corecode' Schubert corecode at fs.ei.tum.de
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?

cheers
 simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00003.pgp
Type: application/octet-stream
Size: 252 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/commits/attachments/20061213/1bdb89d0/attachment-0022.obj>


More information about the Commits mailing list