04 Jan, 2012
1 commit
-
Signed-off-by: Al Viro
23 Aug, 2011
1 commit
-
Although it is expected nowadays that every new sysfs attribute is
documented under Documentation/ABI, this is not yet mentioned in the
kernel documentation. This patch adds a note in the sysfs
documentation about that requirement.Signed-off-by: Bart Van Assche
Cc: Andrew Morton
Cc: Randy Dunlap
Signed-off-by: Greg Kroah-Hartman
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
04 Feb, 2011
2 commits
-
Since snprintf() may return a value that exceeds its second argument,
show() methods should use scnprintf() instead of snprintf(). This patch
updates the example in the sysfs documentation accordingly.Signed-off-by: Bart Van Assche
Cc: Tejun Heo
Cc: Dmitry Torokhov
Signed-off-by: Greg Kroah-Hartman -
Some time ago the way how sysfs stores a pointer to a kobject
corresponding to a directory was modified. This patch brings the
documentation again in sync with the implementation.Signed-off-by: Bart Van Assche
Cc: Tejun Heo
Cc: Dmitry Torokhov
Signed-off-by: Greg Kroah-Hartman
06 Aug, 2010
2 commits
-
Signed-off-by: Ira Weiny
Signed-off-by: Greg Kroah-Hartman -
Fix all discrepancies I know of between the sysfs implementation and its
documentation.Signed-off-by: Bart Van Assche
Cc: Randy Dunlap
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman
24 Dec, 2009
2 commits
-
Many struct driver_attribute descriptors are purely read-only
structures, and there's no need to change them. Therefore make
the promise not to, which will let those descriptors be put in
a ro section.Signed-off-by: Phil Carmody
Signed-off-by: Greg Kroah-Hartman -
Most device_attributes are const, and are begging to be
put in a ro section. However, the create and remove
file interfaces were failing to propagate the const promise
which the only functions they call offer.Signed-off-by: Phil Carmody
Signed-off-by: Greg Kroah-Hartman
29 Jul, 2009
1 commit
-
The original text suggested that sysfs is mandatory and always
compiled in the kernel.Signed-off-by: Lucian Adrian Grijincu
Signed-off-by: Randy Dunlap
Signed-off-by: Greg Kroah-Hartman
23 Feb, 2009
1 commit
-
Fix descriptions of device attributes to be consistent with the actual
implementations in include/linux/device.hSigned-off-by: Mike Murphy
Signed-off-by: Linus Torvalds
22 Jul, 2008
1 commit
-
Why?:
There are occasions where userspace would like to access sysfs
attributes for a device but it may not know how sysfs has named the
device or the path. For example what is the sysfs path for
/dev/disk/by-id/ata-ST3160827AS_5MT004CK? With this change a call to
stat(2) returns the major:minor then userspace can see that
/sys/dev/block/8:32 links to /sys/block/sdc.What are the alternatives?:
1/ Add an ioctl to return the path: Doable, but sysfs is meant to reduce
the need to proliferate ioctl interfaces into the kernel, so this
seems counter productive.2/ Use udev to create these symlinks: Also doable, but it adds a
udev dependency to utilities that might be running in a limited
environment like an initramfs.3/ Do a full-tree search of sysfs.
[kay.sievers@vrfy.org: fix duplicate registrations]
[kay.sievers@vrfy.org: cleanup suggestions]Cc: Neil Brown
Cc: Tejun Heo
Acked-by: Kay Sievers
Reviewed-by: SL Baur
Acked-by: Kay Sievers
Acked-by: Mark Lord
Acked-by: H. Peter Anvin
Signed-off-by: Dan Williams
Signed-off-by: Greg Kroah-Hartman
20 Apr, 2008
1 commit
-
Requiring userspace to close and re-open sysfs attributes has been the
policy since before 2.6.12. It allows userspace to get a consistent
snapshot of kernel state and consume it with incremental reads and seeks.Now, if the file position is zero the kernel assumes userspace wants to see
the new value. The application for this change is to allow a userspace
RAID metadata handler to check the state of an array without causing any
memory allocations. Thus not causing writeback to a raid array that might
be blocked waiting for userspace to take action.Cc: Neil Brown
Acked-by: Tejun Heo
Signed-off-by: Dan Williams
Signed-off-by: Greg Kroah-Hartman
20 Oct, 2007
1 commit
-
Add the obvious missing word.
Signed-off-by: Shaun Zinck
Signed-off-by: Adrian Bunk
04 Oct, 2006
1 commit
-
This patch fixes typos in various Documentation txts. This patch addresses
some words starting with the letters 'D'-'E'.Signed-off-by: Matt LaPlante
Signed-off-by: Adrian Bunk
26 Apr, 2006
1 commit
-
Signed-off-by: Miklos Szeredi
06 Sep, 2005
2 commits
-
Change filemode to use defines in stead of 0644,
based on suggestions by Walter Harms and Domen Puncer.Signed-off-by: Jan Veldeman
Signed-off-by: Domen Puncer
Signed-off-by: Greg Kroah-Hartman -
Fix whitespace after comma between parameters.
Signed-off-by: Jan Veldeman
Signed-off-by: Domen Puncer
Signed-off-by: Greg Kroah-Hartman
21 Jun, 2005
1 commit
-
Signed-off-by: Yani Ioannou
Signed-off-by: Greg Kroah-Hartman
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!