Date: Sat, 4 Aug 2001 20:03:18 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Dima Dorfman <dima@unixfreak.org> Cc: arch@freebsd.org Subject: Re: Library routine to load a kld if it already isn't Message-ID: <20010804200318.D66860@strontium.shef.vinosystems.com> In-Reply-To: <20010804133840.067FB3E31@bazooka.unixfreak.org> References: <20010804074928.A66860@strontium.shef.vinosystems.com> <20010804133840.067FB3E31@bazooka.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--JYK4vJDZwFMowpUq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dima Dorfman wrote: > Adding error possibilities is a change in the interface, and shouldn't > done lightly. Nonetheless, I agree with your idea in general, > although the text you propose is inaccurate. It doesn't use > modfind(2), it uses kldnext(2), kldfirstmod(2), modfnext(2), > modstat(2), and kldload(2). Of all of those, only kldstat(2) should > fail. Sorry, I meant modstat(), not modfind() -- I listed just those two functions since they're the only ones a failure of will result in the code returning -1 as far as I can see. --=20 Ben Smithurst / ben@FreeBSD.org FreeBSD: The Power To Serve http://www.FreeBSD.org/ --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7bEb0bPzJ+yzvRCwRAihDAJ4zQM+YUL7o8b5ZQFgL2V81LI89NgCghBLQ tz7jnfwIDVg2CVeioxE8RYw= =tLG7 -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010804200318.D66860>