lkml.org 
[lkml]   [1999]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectwhat about _IOC_SIZE ??
Date
Hello

Can someone tell me the meaning of the _IOC_SIZE(cmd) value?

ex:
on the user side:
ioctl(fd,_MY_IOCTL,&buffer) (sizeof buffer = 1000)

on the kernel side

ioctl_function(struct inode *inode, struct file *filp, unsigned int cmd,
ulong arg)
..
size = _IOC_SIZE(cmd)


and here size = 4 ??? I would expected 1000...no?

Perhaps my ioctl process is totaly wrong?

Fabien
Get Your Private, Free Email at http://www.hotmail.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.021 / U:2.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site