RE: exposing kernel driver to user space app

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

 



 

> -----Original Message-----
> From: kernelnewbies-bounce@xxxxxxxxxxxx 
> [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of kashif saeed
> Sent: Friday, August 10, 2007 2:52 AM
> To: ilya
> Cc: newbeis list
> Subject: Re: exposing kernel driver to user space app
> 
> netlink sockets will definitely work if you need some help 
> regarding netlink socket let me know
I am interested. Do you have sample code you could share?
Thanks,
Bz


> 
> ilya <jibberboosh@xxxxxxxxx> wrote:
> 
> 	hello,
> 	
> 	according to this article: http://lwn.net/Articles/149807/
> 	configfs and sysfs are practically the same thing. i think
> 	i am going to give netlink sockets a try instead, if that
> 	won't work i'll stick w/ sysfs.
> 	thank you for your reply.
> 	
> 	-- ilya
> 	
> 	On 8/9/07, pradeep singh <2500.pradeep@xxxxxxxxx> wrote:
> 	> On 8/9/07, ilya wrote:
> 	> > hello,
> 	> >
> 	> [...]
> 	> >
> 	> > i have a feeling, however, that i am abusing this method.
> 	> > what is the appropriate way of setting this up? is there
> 	> > a way for the module to notify an application of some
> 	> > event happening? because right now i do this by
> 	> > constantly reading from one of the files in sysfs until
> 	> > the value it holds changes. i also know that reading
> 	> > files from kernel-mode is not a good thing, but i want
> 	> > to implement something of a config file that can be
> 	> > modified from user-space but would be read in by
> 	> > the module. what is the best way of doing this?
> 	>
> 	> Not sure whether this is the best way or not but i 
> guess you should
> 	> have a look at config fs too. AFAIR it is used to 
> send notifications
> 	> from kernel to userspace in a cleaner way.
> 	>
> 	> Does this solves your problem somehow?
> 	>
> 	> thanks
> 	> >
> 	> > any info is much appreciated.
> 	> >
> 	> > -- ilya
> 	> >
> 	> > --
> 	> > To unsubscribe from this list: send an email with
> 	> > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> 	> > Please read the FAQ at http://kernelnewbies.org/FAQ
> 	> >
> 	> >
> 	>
> 	>
> 	> --
> 	> play the game
> 	>
> 	
> 	--
> 	To unsubscribe from this list: send an email with
> 	"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> 	Please read the FAQ at http://kernelnewbies.org/FAQ
> 	
> 	
> 
> 
> ________________________________
> 
> Shape Yahoo! in your own image. Join our Network Research 
> Panel today! 
> <http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com
/gmrs/yahoo_panel_invite.asp?a=7>  
> 

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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