Sean Boudreau(deleted)
|
Re: ioctl operation in sample ethernet driver
|
Sean Boudreau(deleted)
10/21/2009 10:07 AM
post40425
|
Re: ioctl operation in sample ethernet driver
On Wed, Oct 21, 2009 at 09:52:01AM -0400, Senthil K wrote:
> Hi Sean,
>
> #define MY_CMD _IOW('p',1,struct ifreq)
>
> I register the sam_ioctl function in the driver.
>
> strcpy(ifreq.ifr_name,"sam0");
> if i do ioctl(s,MY_CMD,&ifreq) function it should call sam_ioctl function right?
No. 'p' class ioctls hit generic handling
further up and the stack has no knowledge
of this ioctl at that level.
Regards,
-seanb
|
|
|