Date: Wed, 21 Mar 2001 15:04:47 -0800 From: Mike Smith <msmith@freebsd.org> To: Alexey Dokuchaev <danfe@inet.ssc.nsu.ru> Cc: freebsd-hackers@freebsd.org Subject: Re: Some PCI-related programming things Message-ID: <200103212304.f2LN4lh03035@mass.dis.org> In-Reply-To: Your message of "Thu, 22 Mar 2001 04:57:24 %2B0600." <Pine.LNX.4.10.10103220456410.26570-100000@inet.ssc.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Did I say I'm doing it from userspace?! If I did (too lazy to dig into > > > sent-mail), I beg your pardon :) > > > > Your FreeBSD sample involved making an ioctl call, so it must have been > > from userspace. > > Is anything wrong with using ioctl calls from device driver? Perhaps a more polite answer is called for. 8) Ioctls allow user processes to make function calls within a device driver; they are a mechanism for exporting functionality from a device driver out into userspace. You don't call them from other device drivers, no. There are exported interfaces inside the kernel for doing this, and you will understand everything much better if you go look at a simple FreeBSD PCI device driver, particularly the _probe and _attach functions. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103212304.f2LN4lh03035>