|
Re: ioctl operation in sample ethernet driver
|
10/20/2009 7:01 AM
post40312
|
Re: ioctl operation in sample ethernet driver
Rename your executable to sth else, not test, test as a executable name was not supported some time ago.
PKY
> Hi,
> I have added a few new ioctl commands in sam_ioctl function in sample ethernet
> driver.
>
> For accessing
> ========
> 1.I wrote test application to create a s = socket(AF_INET,SOCK_DGRAM,0).
> 2.update the interface name as sam0 in struct ifreq structure.
> 3.invoked ioctl function ioctl(s,MY_CMD,&ifreq).
>
> The following error
> ===========
> #./test
> [Operation not Supported ]
>
> Please tell me how to process my ioctl commands.
>
> Regards
> K.Senthil
>
>
>
>
|
|
|
|
Re: ioctl operation in sample ethernet driver
|
10/21/2009 9:07 AM
post40417
|
Re: ioctl operation in sample ethernet driver
On Tue, Oct 20, 2009 at 06:40:57AM -0400, Senthil K wrote:
> Hi,
> I have added a few new ioctl commands in sam_ioctl function in sample ethernet driver.
>
> For accessing
> ========
> 1.I wrote test application to create a s = socket(AF_INET,SOCK_DGRAM,0).
> 2.update the interface name as sam0 in struct ifreq structure.
> 3.invoked ioctl function ioctl(s,MY_CMD,&ifreq).
>
> The following error
> ===========
> #./test
> [Operation not Supported ]
>
> Please tell me how to process my ioctl commands.
>
I suggest firing up the debugger. Depending
on how MY_CMD is defined it may be handled
higher up the stack. In general the first
step is do populate the (struct ifnet *)->if_ioctl
callout when registering your driver.
Regards,
-seanb
|
|
|