<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/Documentation/filesystems/sysfs.txt, branch v2.6.32.41</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>driver core: documentation: make it clear that sysfs is optional</title>
<updated>2009-07-28T20:45:23+00:00</updated>
<author>
<name>Lucian Adrian Grijincu</name>
<email>lgrijincu@ixiacom.com</email>
</author>
<published>2009-07-27T16:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a39ea210ec8c8f6ed381f8dafbe755c57b8f30c3'/>
<id>a39ea210ec8c8f6ed381f8dafbe755c57b8f30c3</id>
<content type='text'>
The original text suggested that sysfs is mandatory and always
compiled in the kernel.

Signed-off-by: Lucian Adrian Grijincu &lt;lgrijincu@ixiacom.com&gt;
Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original text suggested that sysfs is mandatory and always
compiled in the kernel.

Signed-off-by: Lucian Adrian Grijincu &lt;lgrijincu@ixiacom.com&gt;
Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>PATCH [2/2] Documentation/filesystems/sysfs.txt: fix descriptions of device attributes</title>
<updated>2009-02-22T17:28:15+00:00</updated>
<author>
<name>Mike Murphy</name>
<email>mamurph@cs.clemson.edu</email>
</author>
<published>2009-02-22T06:19:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f8a1af6bbc63218cabce742a7a291ac7c08bbd00'/>
<id>f8a1af6bbc63218cabce742a7a291ac7c08bbd00</id>
<content type='text'>
Fix descriptions of device attributes to be consistent with the actual
implementations in include/linux/device.h

Signed-off-by: Mike Murphy &lt;mamurph[at]cs.clemson.edu&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix descriptions of device attributes to be consistent with the actual
implementations in include/linux/device.h

Signed-off-by: Mike Murphy &lt;mamurph[at]cs.clemson.edu&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sysfs: add /sys/dev/{char,block} to lookup sysfs path by major:minor</title>
<updated>2008-07-22T04:54:40+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dan.j.williams@intel.com</email>
</author>
<published>2008-04-21T17:51:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e105b8bfc769b0545b6f0f395179d1e43cbee822'/>
<id>e105b8bfc769b0545b6f0f395179d1e43cbee822</id>
<content type='text'>
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 &lt;neilb@suse.de&gt;
Cc: Tejun Heo &lt;htejun@gmail.com&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Reviewed-by: SL Baur &lt;steve@xemacs.org&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Acked-by: Mark Lord &lt;lkml@rtr.ca&gt;
Acked-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;neilb@suse.de&gt;
Cc: Tejun Heo &lt;htejun@gmail.com&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Reviewed-by: SL Baur &lt;steve@xemacs.org&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Acked-by: Mark Lord &lt;lkml@rtr.ca&gt;
Acked-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>sysfs: refill attribute buffer when reading from offset 0</title>
<updated>2008-04-20T02:10:29+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dan.j.williams@intel.com</email>
</author>
<published>2008-04-07T22:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2424b5dd062cbe3e0578ae7b11a1b360ad22f451'/>
<id>2424b5dd062cbe3e0578ae7b11a1b360ad22f451</id>
<content type='text'>
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 &lt;neilb@suse.de&gt;
Acked-by: Tejun Heo &lt;htejun@gmail.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;neilb@suse.de&gt;
Acked-by: Tejun Heo &lt;htejun@gmail.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>docs/sysfs: add missing word to sysfs attribute explanation</title>
<updated>2007-10-20T00:39:43+00:00</updated>
<author>
<name>Shaun Zinck</name>
<email>shaun.zinck@gmail.com</email>
</author>
<published>2007-10-20T00:39:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f8c34f9816d9dd9d09ed9a78332fbe698e8fc765'/>
<id>f8c34f9816d9dd9d09ed9a78332fbe698e8fc765</id>
<content type='text'>
Add the obvious missing word.

Signed-off-by: Shaun Zinck &lt;shaun.zinck@gmail.com&gt;
Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the obvious missing word.

Signed-off-by: Shaun Zinck &lt;shaun.zinck@gmail.com&gt;
Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in Documentation/: 'D'-'E'</title>
<updated>2006-10-03T20:47:42+00:00</updated>
<author>
<name>Matt LaPlante</name>
<email>kernel1@cyberdogtech.com</email>
</author>
<published>2006-10-03T20:47:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fff9289b219f48cb2296714fea3d71f516991f9f'/>
<id>fff9289b219f48cb2296714fea3d71f516991f9f</id>
<content type='text'>
This patch fixes typos in various Documentation txts. This patch addresses
some words starting with the letters 'D'-'E'.

Signed-off-by: Matt LaPlante &lt;kernel1@cyberdogtech.com&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes typos in various Documentation txts. This patch addresses
some words starting with the letters 'D'-'E'.

Signed-off-by: Matt LaPlante &lt;kernel1@cyberdogtech.com&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[doc] add paragraph about 'fs' subsystem to sysfs.txt</title>
<updated>2006-04-26T08:49:26+00:00</updated>
<author>
<name>Miklos Szeredi</name>
<email>miklos@szeredi.hu</email>
</author>
<published>2006-04-26T08:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c86d90df2676d9d212c0ab1f3c64e0abdf5b4c09'/>
<id>c86d90df2676d9d212c0ab1f3c64e0abdf5b4c09</id>
<content type='text'>
Signed-off-by: Miklos Szeredi &lt;miklos@szeredi.hu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Miklos Szeredi &lt;miklos@szeredi.hu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Driver core: Documentation: use S_IRUSR | ... in stead of 0644</title>
<updated>2005-09-05T23:03:12+00:00</updated>
<author>
<name>Jan Veldeman</name>
<email>jan@mind.be</email>
</author>
<published>2005-07-31T11:12:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc'/>
<id>91e49001b9a7fe5dc2fa5b56039fbca9aa638ccc</id>
<content type='text'>
Change filemode to use defines in stead of 0644,
based on suggestions by Walter Harms and Domen Puncer.

Signed-off-by: Jan Veldeman &lt;Jan.Veldeman@advalvas.be&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change filemode to use defines in stead of 0644,
based on suggestions by Walter Harms and Domen Puncer.

Signed-off-by: Jan Veldeman &lt;Jan.Veldeman@advalvas.be&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Driver core: Documentation: fix whitespace between parameters</title>
<updated>2005-09-05T23:03:12+00:00</updated>
<author>
<name>Jan Veldeman</name>
<email>jan@mind.be</email>
</author>
<published>2005-07-31T11:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f8d825bfb8d2a7546eeb57569d0eedf8c5565d28'/>
<id>f8d825bfb8d2a7546eeb57569d0eedf8c5565d28</id>
<content type='text'>
Fix whitespace after comma between parameters.

Signed-off-by: Jan Veldeman &lt;Jan.Veldeman@advalvas.be&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix whitespace after comma between parameters.

Signed-off-by: Jan Veldeman &lt;Jan.Veldeman@advalvas.be&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Driver core: Documentation: update device attribute callbacks</title>
<updated>2005-06-20T22:15:32+00:00</updated>
<author>
<name>Yani Ioannou</name>
<email>yani.ioannou@gmail.com</email>
</author>
<published>2005-05-17T10:40:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3eb8c7836eb074b61d63597be3e4f085814ac4c0'/>
<id>3eb8c7836eb074b61d63597be3e4f085814ac4c0</id>
<content type='text'>
Signed-off-by: Yani Ioannou &lt;yani.ioannou@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Yani Ioannou &lt;yani.ioannou@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
