Thomas De Schampheleire wrote:
On 5/21/07, Darren J Moffat <[EMAIL PROTECTED]> wrote:
Thomas De Schampheleire wrote:
> You're right that this probably is the cleanest solution.
>
> However, this does not work for anything other than a debug parameter
> right? Suppose I want to communicate with the module, for something
> else. How can I do this?
An ioctl on the drivers device node, eg:
fd = open("/dev/mydriver", O_RDWR);
ioctl(fd, MYDRIVER_FOO_ACTION, &myfooadata);
Is this also available for modules which are not drivers?
You have to create and program this yourself it isn't done automatically
for you.
Any module can do this if the code in the module has a device node and
supports the open and ioctl entry points.
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code