Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Custom ioctl on Linux FORE200E ATM driver

  1. Jun 12, 2012 #1
    I need to pass a user-space pointer for a 64 bit memory chunk to the FORE200E Linux ATM driver so that the driver can write in it. I was thinking of using the ioctl() call to perform this custom "operation" of recording the user-space pointer in the driver module.

    I open the socket without a problem:

    atmSocket = socket(PF_ATMPVC, SOCK_DGRAM, 0);

    I can do setsockopt(atmSocket, ...), send(atmSocket, ...) and recv(atmSocket, ...) calls also without a problem.

    However, regardless of the cmd I pass to the ioctl() call, it always fails with the "No such device" error message:

    int someInt;
    ioctl(atmSocket, FIOGETOWN, &someInt);

    -> ioctl: No such device
    Last edited: Jun 12, 2012
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted