[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: [PROGRAMMERING] [C] Læse fra proc fi



Hej Martin

Martin Schiotz wrote:

Hej Peter
Undskyld, men jeg har været væk at par dage. Jeg vil prøve med din ide om at blokerer read(), mens der skrives til /proc/test. Når der så skal læses kan man vel styre dette med en select(), når der skal læses og ikke læses. Var det noget i den stil du tænkte på ?

Et helt klart maaske ;-)

Jeg antager du mener, at du vil bruge select() i den proces, der oensker
at laese fra /proc/test (naar der er noget nyt) ? Hvis ja, saa behoever
du kun at bruge select(), hvis du oensker at din procestraad SKAL kunne
goere noget andet imens (og dette ikke implementeres med signals). Hvis ikke, saa venter din traad bare paa et blocking read().


Hvordan man saa skriver en/et "driver/modul" til kernen, der laver en entry kaldet /proc/test som man saa kan aabne og laese og som blokerer den laesende proces indtil der er data, ja det ved jeg ikke saa meget om, men man kan jo kigge paa andre implementeringer.

--PMM



 
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] *