Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.development.system > #439

Custom ioctl on Linux FORE200E ATM driver

From diogomiguelalves@gmail.com
Newsgroups comp.os.linux.development.system
Subject Custom ioctl on Linux FORE200E ATM driver
Date 2012-06-12 03:49 -0700
Organization http://groups.google.com
Message-ID <2d1c28c8-f840-427f-82d5-dd47b5cc4e3a@googlegroups.com> (permalink)

Show all headers | View raw


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 the 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);
perror("ioctl");

-> ioctl: No such device

What am I doing wrong?

Back to comp.os.linux.development.system | Previous | Next | Find similar


Thread

Custom ioctl on Linux FORE200E ATM driver diogomiguelalves@gmail.com - 2012-06-12 03:49 -0700

csiph-web