Re: ioctl in a module - sending more than one paramter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

On Wed, Jul 20, 2005 at 11:31:41AM -0400, John Que told us:
> So how can I pass more than one parameter to an ioctl ? 

you might put your parameters in a struct and pass this struct to
the ioctl. See for example net/ipv4/af_inet.c the function
inet_ioctl() and probably many others.


HTH

Sven

> 
> I want to empasize that my module is not a real char device driver, because 
> it in fact does not use any hw.
> 
> So from my point of view , the register_chrdev is NOT a must, if 
> something else will solve my problem.
> 
> Any idea? 
> 
> TIA,
> 
> Regards,
> John
> 

-- 
Linux zion 2.6.13-rc3-mm1 #6 PREEMPT Mon Jul 18 19:42:52 CEST 2005 i686 athlon i386 GNU/Linux
 17:56:07 up 1 day, 22:08,  1 user,  load average: 0.00, 0.03, 0.05

Attachment: pgp96EWowAeMq.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux