Re: Basic question about IOCTL

2008-02-11 Thread David Cohen
) does a lot of if's until reach the right action, while sysfs just avoids it. Br, David Cohen > > -- > Gary Chambers > > // - > // Advanced SatComm Systems & Operations > // MIT Lincoln Laboratory / 781-981-0957 > // Lexington, Massachusetts > // Nothing fancy and nothing Microsoft > // - >

Re: Basic question about IOCTL

2008-02-11 Thread David Cohen
s? > And is the alternative to ioctl()s, reading/writing to special /proc or > /sysfs entries? Is that faster/slower than ioctl()s, or just cleaner. I believe it's cleaner and a bit faster, once you don't have to do a lot of if's as you do into ioctl(). Br, David Cohen > > > Thanks for all your replies. > -Mayank >

Re: Is there a way I can check from a kernel module if a device file exists ?

2008-02-11 Thread David Cohen
probably > configure udev instead. Every char or block device has a major and a minor number. The file /dev/ is just a special file pointing to those major and minor numbers in order to access some device driver from userland. You can have a driver running withtou any dev file accessing it

Re: How to get hardware detailed information?

2008-02-11 Thread David Cohen
... But avoiding to compile some modules won't optimize your system as well, only your compiling time. Br, David Cohen > > Thanks, > > Rajat > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ