Re: Question about kernel interfaces

2015-02-07 Thread Siddhartha De
>(For bonus points, instead of EJECT, explain how you form a curl URL >that does TCSETS. Yes, you *do* have to handle *all* the fields of a >struct termios, for both 32 and 64 bit environments) I am new to termios programming so please correct me if I am wrong ... I did a bit of googling and

Re: Question about kernel interfaces

2015-01-21 Thread One Thousand Gnomes
On Sun, 18 Jan 2015 15:03:55 +0530 > Let's say you need to call an ioctl from a shell script ( I know its a > very rare use case but please bear with me ... :) ) > > So the current way of doing it is probably to write a C program which > actually calls the ioctl and then call the C program from th

Re: Question about kernel interfaces

2015-01-18 Thread Valdis . Kletnieks
On Sun, 18 Jan 2015 15:03:55 +0530, Siddhartha De said: > Let's say you need to call an ioctl from a shell script ( I know its a > very rare use case but please bear with me ... :) ) There's a *reason* it's very rare... > So the current way of doing it is probably to write a C program which > ac

Re: Question about kernel interfaces

2015-01-18 Thread Siddhartha De
gardless of whatever language they are coding in , this could be a good way of doing it :) Thanking you , Yours sincerely , Kernel Newbie On Sat, Jan 17, 2015 at 1:07 AM, Siddhartha De wrote: > FYI ... > > > ------ Forwarded message -- > From: One Thousand Gnomes

Re: Question about kernel interfaces

2015-01-14 Thread One Thousand Gnomes
> Just wanted to point out something :- > > Quoting from makelinux website :- > http://www.makelinux.net/books/lkd2/ch17lev1sec8 > > "The sysfs filesystem is currently the place for implementing > functionality previously reserved for ioctl() calls on device nodes or > the procfs filesystem. The

Re: Question about kernel interfaces

2015-01-09 Thread Siddhartha De
Hi , Thanks for your reply . Really appreciate your taking time out to answer this ... 1> > Are all drivers in future required to expose interfaces in sysfs ? > Only if they need one (some will appear automatically as you enable power management and the like). Just wanted to point out somethin

Re: Question about kernel interfaces

2015-01-08 Thread One Thousand Gnomes
> Is sysfs 'supposed' to be a read only where various kernel parameters > are exposed to be read ? Or are they 'supposed' to be writable too ? You can create either > Are all drivers in future required to expose interfaces in sysfs ? Only if they need one (some will appear automatically as you e