[PATCH 0/3] powerpc: Instrument Hypervisor Calls: add sysfs files

Christopher Yeoh cyeoh at samba.org
Thu Jun 15 21:45:50 EST 2006


At 2006/6/14 09:22-0500  Nathan Lynch writes:
> > +
> > +static SYSDEV_ATTR(hcall_stats, 0666, show_hcall_stats, NULL);
> 
> Mode should be 0444 or 0400, no need to have write permissions.
> 

The original version zeroed all of the counters if you wrote anything
to the file. This was kind of handy when doing test runs.

Chris
-- 
cyeoh at au.ibm.com
IBM OzLabs Linux Development Group
Canberra, Australia



More information about the Linuxppc-dev mailing list