Guest sreenaath Posted September 1, 2006 Report Share Posted September 1, 2006 All I use the sample ioctl code (ioctl.c, chardev.c) given in http://www.faqs.org/docs/kernel/x848.html from Linux Kernel Programming Guide. I used the same sample program given there. I loaded the chardev.o module and before that i created a node for the devide file using mknod char_dev c 100 0. After that i get the device registered properly in chardev.c. But while trying to set some message using the ioctl_set_msg function in ioctlc.c i get this error ioctl_set_msg failed:-1. I am not sure where i am goign wrong. can anyone tell me what's wrong? Is there anything extra i need to do?? regards sreenaath Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.