Re: Dispensing information.

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

 



On Thu, Apr 12, 2007 at 09:10:08PM +0300, Tzahi Fadida wrote:
> On Thursday 12 April 2007 17:52:07 Greg KH wrote:
> > On Thu, Apr 12, 2007 at 04:51:29PM +0300, Tzahi Fadida wrote:
> > > On Thursday 12 April 2007 14:49:01 Pharaoh . wrote:
> > > > Sysfs.
> > >
> > > Where in sysfs is it most appropriate to put a driver directory that
> > > includes all the information subdirs and attributes? and how do i get a
> > > pointer to it's kobject?
> >
> > No, don't use sysfs, sysfs is for "one value per file".
> >
> > Use debugfs, that is what it is for (i.e. whatever you want it to be.)
> 
> I was curious so i tried it. I am wondering though, does debugfs comes with 
> all dists in the kernel already?

Yes.

> Since i want to distribute it to users.  I will probably also have to
> create a script to mount the debugfs.

It's all of one line:
	mount -t debugfs none /sys/kernel/debug

good luck,

greg k-h

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