Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

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

BUS_ACCESSOR is busted at best

Ok, so what happens if BUS_READ_IVAR or BUS_WRITE_IVAR fails?
For the WRITE_IVAR case we just silently fail.  How nice.  For
the READ_IVAR case we return garbage.  I think we should change
the bus accessors to return the error code from the BUS method
and have read_ivar accept a pointer to the right type.


John Baldwin <jhb@xxxxxxxxxxx>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-new-bus" in the body of the message