> > > 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message