IOCTL from 64b user space

jfaslist jfaslist at yahoo.fr
Tue Jan 24 03:21:06 EST 2006


jfaslist wrote:

> Hi,
> I am using a Maple platform.
> I have written a driver which ioctl entry point expects a structure 
> passed from a 64b user space program. The driver is passed the 
> structure address in the "arg" argument:
>
> int (*ioctl) (struct inode *inode, struct file *filp,
> unsigned int cmd, unsigned long arg);
>
> But in my driver when I look at the address of that structure (prior 
> to doing a copy_from_user ) , I see the address is "0". the "cmd" 
> ioctl code is correct though.
> Question: can I have 64b apps making ioctl calls? or do I have to use 
> only 32b apps and use the ioctl32.c scheme, like on Sparc64?
>
> Sorry for what is likely a basic question.
> Thanks
> -jf simon
>
>
Please ignore. It was a bug in my code.
Sorry
-jfs


	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com



More information about the Linuxppc64-dev mailing list