Re: Show application performance/errors from pseudo file

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

 



I’m no expert but I believe you’d need a kernel module to create the char device, then have your application talk to it somehow?
http://stackoverflow.com/questions/5970595/create-a-device-node-in-code

On Oct 16, 2014, at 12:50 PM, Daniel Hilst Selli <danielhilst@xxxxxxxxx> wrote:

> I'm writing a new application and would be nice to have a pseudo file showing its status, just the way that procfs does with kernel.
> I'm looking for sugestions, I want to `cat' files contents and have something similar to /proc/meminfo
> 
> First I think using named pipes, but, AFAIK, pipes would retain data writed until someone read it, what I thought is a kind of read
> hook that only show data when asked for. Here are a few requisites,
> 
> - Don't retain data
> - Don't generate disk I/O
> - Vanish when application stops
> - Work with a simple cat or something similar..
> 
> With that in mind I think about using unix domain sockets.. it seems to fit all requisites, for
> the fourth requisite I could use netcat, that is almost cat,
> 
> Cheers
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux