[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: Re: [PROGRAMMERING] [C] Læse fra



> On Fri, 23 Jan 2004, Martin Schiotz wrote:
> 
> > > http://www.linuxforum.com/linux-kernel-programming/x716.html har en
> > > introduktion til PROC_FS programmering.
> ...
> 
> > Dvs. mit næste spørgsmål er så nok, hvordan for jeg så transporteret
> > info (uden at bruge /proc) fra driveren til et user space program.
> 
> Hvis ikke der kommer ret mange data, fx 100 byte/sek, kan du så ikke
> bare sende dem til syslog? (printk)

Vi snakker måske 100 bytes pr. 10-100 ms, så det bliver til en del.
Jeg kan godt skrive til syslog og bruger det sådan set også til debugging.

> 
> > Dvs. hvor det er driveren der bestemmer, når user space programmet
> > skal opdateres med ny info ?
> 
> Det er nok PROC_FS du skal have fat i. Jeg ved ikke lige der er et
> eksempel, men det mindre lidt om det:
> 	cat /dev/zero

Det er jeg ikke lige bekendt med, men jeg vil prøve se, hvad det går ud på !
 
> 
> /dev/zero kommer med output, hvis nogen beder om det. Ellers ikke.
> Det kunne være det du har brug for.
> 
> /hans
> --
> Hamletsgade 4 - 201, DK-2200 København N, Phone: +45 3582 9079
> Schou Industries ApS      http://schou.dk/    CVR: 26 13 44 39
> --------------------------------------------------------------
> If KNOPPIX can't do it, Linux can't do it.
> 					-- Binh Nguyen
> 




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:43 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *