Re: Dispensing information.

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

 



On Thu, 12 Apr 2007, Randy Dunlap wrote:

> On Thu, 12 Apr 2007 14:34:12 +0300 Tzahi Fadida wrote:
>
> > Hi,
> > I have a design question.
> > I am creating a module that will dispense statistics and debugging
> > information.
> > What is the more correct way to dispense this information? The information
> > will look like a result of ps -ax or dmesg or top, etc...
> > Use /proc? /sys? use the device /dev?
> > I want it to be as simple to access as possible.
> > 10x.
>
> I prefer debugfs.  Of course, it's optional, so not always there,
> but that's the case for /proc and /sys as well.

if (as gregkh already pointed out) it's going to be ad hoc and
informal, and possibly try to cram several values into a single file.
don't use sysfs -- sysfs has some fairly strict aesthetics.

OTOH, if you look at other examples under /sys, and are willing to
model your files/dirs after that and play by the already-established
rules, then /sys is an option.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

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