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: Fwd: Question about kernel interfaces

2015-01-09 Thread Valdis . Kletnieks
On Fri, 09 Jan 2015 18:00:07 +0530, Siddhartha De said: > In what timeframe should we migrate to "pure" sysfs and drop using > any ioctls (if a sysfs interface exists)? Pretty much the answer is "you don't", for the wsame reason that there's still a lot of non-process stuff in /proc - there's no

Fwd: Question about kernel interfaces

2015-01-09 Thread Siddhartha De
Looks like the last message bounced ... Thanks , Kernel Newbie :) -- Forwarded message -- From: Siddhartha De Date: Fri, Jan 9, 2015 at 5:50 PM Subject: Fwd: Question about kernel interfaces To: linux-kernel , Siddhartha De , kernelnewb...@kernelnewbies.org Hi , Dear

Fwd: Question about kernel interfaces

2015-01-09 Thread Siddhartha De
list so that any discussions automatically gets forwarded there ... Thanks , Kernel Newbie :) -- Forwarded message -- From: Siddhartha De Date: Fri, Jan 9, 2015 at 5:18 PM Subject: Re: Question about kernel interfaces To: One Thousand Gnomes Cc: linux-kernel Hi , Thanks for

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

Fwd: Question about kernel interfaces

2015-01-07 Thread Siddhartha De
I have already asked this question on the kernelnewbies IRC but I wanted a bit of feedback from the Linux gurus ... 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 ? Are all drivers in future required to exp