Re: Ioctl Numbering

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

 



<snip>

> If Interpretation of commands  must be same in
> user space and kernel 
> space and if we r using these macros and
> dynamically allocating 
> value,then how user space will know this..(these
> macros can't be used in user space know)

These macros may be used in user space. IO controls
are the glue (or would that be duct tape?) between
user and kernel space so the control codes must be
representable in both. (Try including <sys/ioctl.h> in
your user-space code.)

One more thing, are you sure you need to use dynamic
IO control codes? I don't know what you're trying to
do, but it would seem easier to have a single, static
IO control and then alter behavior/state based on its
parameters.

-Mike DeKoker


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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