Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Oct 2002 11:48:27 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        new-bus@FreeBSD.org
Subject:   BUS_ACCESSOR is busted at best
Message-ID:  <XFMail.20021008114827.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021008114827.jhb>