I tried on Tiny6410. Using ioctl one can turn on and off the leds

To turn on led3 
# ioctl  -d  /dev/leds 1 3
sending ioctl 0x1 0x03 0x00 0x00 0x00
return buf: 03 00 00 00

To tun off led3
 # ioctl  -d  /dev/leds 0 3
sending ioctl 0x0 0x03 0x00 0x00 0x00
return buf: 03 00 00 00

Hope this helps.

On Thursday, September 16, 2010 7:41:49 PM UTC+5:30, Dave wrote:
>
> Has anyone had any success in using the ioctl that is included in 
> system/bin ? 
>
> I would like to query some device drivers and any example would be 
> appreciated. 
>
>
> $ ioctl -h 
> ioctl -h 
> ioctl [-l <length>] [-a <argsize>] [-rdh] <device> <ioctlnr> 
>   -l <lenght>   Length of io buffer 
>   -a <argsize>  Size of each argument (1-8) 
>   -r            Open device in read only mode 
>   -d            Direct argument (no iobuffer) 
>   -h            Print help 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to