Do you have a question? Post it now! No Registration Necessary
February 20, 2008, 2:20 am

hi, when trying to do ioctl call to my driver, i keep getting an error
message: unknown command fd(3). it seems that the ioctl
call is not invoking my driver ioctal method because the debug message
inside my ioctl method never get printed out.
although this may seems like i am using incorrect file descriptor,
since my ioctl method is not even being called, i know i am
using the correct file descriptor because my 'read' method gets
invoked fine.
And using the same code and driver, i was able to get it to work on a
486 target machine but it doesn't seem to work with this
particular linux version.
how can i debug this code? where in the kernel code can i begin to
trace to see what is happening? which file/function gets
called when ioctl function is fisrt called?
(i don't have a debugger and i am not able to gdb the code so i need
to resort to printing out debug messages in the source
code.)
thank you in advance.
message: unknown command fd(3). it seems that the ioctl
call is not invoking my driver ioctal method because the debug message
inside my ioctl method never get printed out.
although this may seems like i am using incorrect file descriptor,
since my ioctl method is not even being called, i know i am
using the correct file descriptor because my 'read' method gets
invoked fine.
And using the same code and driver, i was able to get it to work on a
486 target machine but it doesn't seem to work with this
particular linux version.
how can i debug this code? where in the kernel code can i begin to
trace to see what is happening? which file/function gets
called when ioctl function is fisrt called?
(i don't have a debugger and i am not able to gdb the code so i need
to resort to printing out debug messages in the source
code.)
thank you in advance.
Site Timeline
- » Hypertransport device registration
- — Next thread in » Embedded Linux
-
- » Subversion- svn import skips *.la *.o and *.lo -files
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Telefon na wiele kilometrow.
- — The site's Newest Thread. Posted in » Electronics (Polish)
-