<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/fs/sysfs/Makefile, branch v6.8.4</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.8.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.8.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2019-05-21T08:50:46Z</updated>
<entry>
<title>treewide: Add SPDX license identifier - Makefile/Kconfig</title>
<updated>2019-05-21T08:50:46Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-19T12:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1'/>
<id>urn:sha1:ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1</id>
<content type='text'>
Add SPDX license identifiers to all Make/Kconfig files which:

 - Have no license information of any form

These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:

  GPL-2.0-only

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysfs, kernfs: move inode code to fs/kernfs/inode.c</title>
<updated>2013-11-30T01:55:10Z</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2013-11-28T19:54:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ffed24e22845a3da0ae01095ae3f11c8d16e889d'/>
<id>urn:sha1:ffed24e22845a3da0ae01095ae3f11c8d16e889d</id>
<content type='text'>
There's nothing sysfs-specific in fs/sysfs/inode.c.  Move everything
in it to fs/kernfs/inode.c.  The respective declarations in
fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h.

This is pure relocation.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sysfs: merge regular and bin file handling</title>
<updated>2013-10-06T00:27:40Z</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2013-10-01T21:42:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3124eb1679b28726eacbc8973a891235dca3ed99'/>
<id>urn:sha1:3124eb1679b28726eacbc8973a891235dca3ed99</id>
<content type='text'>
With the previous changes, sysfs regular file code is ready to handle
bin files too.  This patch makes bin files share the regular file
path.

* sysfs_create/remove_bin_file() are moved to fs/sysfs/file.c.

* sysfs_init_inode() is updated to use the new sysfs_bin_operations
  instead of bin_fops for bin files.

* fs/sysfs/bin.c and the related pieces are removed.

This patch shouldn't introduce any behavior difference to bin file
accesses.

Overall, this unification reduces the amount of duplicate logic, makes
behaviors more consistent and paves the road for building simpler and
more versatile interface which will allow other subsystems to make use
of sysfs for their pseudo filesystems.

v2: Stale fs/sysfs/bin.c reference dropped from
    Documentation/DocBook/filesystems.tmpl.  Reported by kbuild test
    robot.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Kay Sievers &lt;kay@vrfy.org&gt;
Cc: kbuild test robot &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>[sysfs] Add attribute groups</title>
<updated>2003-08-06T08:48:33Z</updated>
<author>
<name>Patrick Mochel</name>
<email>mochel@osdl.org</email>
</author>
<published>2003-08-06T08:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7bf6856501083b948b20ba601252eea0a2959347'/>
<id>urn:sha1:7bf6856501083b948b20ba601252eea0a2959347</id>
<content type='text'>
Attribute groups provide the ability to register a set of sysfs attributes
for a kobject all at once, and optionally create a subdirectory to hold 
them.

The constructs are simple:
                                                                                                         
struct attribute_group {
        char                    * name;
        struct attribute        * attrs;
};

int sysfs_create_group(struct kobject *, struct attribute_group *);
void sysfs_remove_group(struct kobject *, struct attribute_group *);


If -&gt;name is not NULL, then we create a subdirectory of that name to hold
the attributes. We then iterate over -&gt;attrs and create a file for each,
in the subdirectory if we created one.

This prevents one from having to register a kobject (and define a new
kobj_type) to create a subdirectory for a group of attributes. Attributes
currently defined in that way can be converted to use attribute_groups
easily, with one caveat:

The attributes that are added for a kobject, even if in a subdirectory,
must be declared as the high-level attribute type (with an embedded struct
attribute) for the kobject, and conform to the kobj_type's calling
convention for reading/writing attributes.

The kobject that you're creating attributes for owns the directory, and
will assume ownership of the subdirectory. sysfs will reference this
kobject, and it's kobj_type, when the attribute file is opened to
determine the methods for reading/writing the attribute.

sysfs will call the kobj_type's show()/store() methods, which will convert
the kobject into a high-level object type, and convert the attribute into
a high-level attribute type, which (depending on the kobj_type) is
expected to have a show() and/or store() method.

Note that this makes it only slightly easier to create attributes en masse,
though it is a bit technically superior, since it doesn't require a new 
kobj_type and kobject register. More will come in this area.. 
</content>
</entry>
<entry>
<title>sysfs: fixup merge</title>
<updated>2003-03-03T10:59:28Z</updated>
<author>
<name>Patrick Mochel</name>
<email>mochel@osdl.org</email>
</author>
<published>2003-03-03T10:59:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=004ced81514dd79e6ad2a82797edd9eb0122963e'/>
<id>urn:sha1:004ced81514dd79e6ad2a82797edd9eb0122963e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kbuild: Remove export-objs := ... statements</title>
<updated>2003-02-03T10:19:47Z</updated>
<author>
<name>Kai Germaschewski</name>
<email>kai@tp1.ruhr-uni-bochum.de</email>
</author>
<published>2003-02-03T10:19:47Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4612452845903c0af785fe507758004f15ee4b2c'/>
<id>urn:sha1:4612452845903c0af785fe507758004f15ee4b2c</id>
<content type='text'>
One of the goals of the whole new modversions implementation:
export-objs is gone for good!
</content>
</entry>
<entry>
<title>sysfs: add initial support for binary files.</title>
<updated>2003-01-31T12:24:50Z</updated>
<author>
<name>Patrick Mochel</name>
<email>mochel@osdl.org</email>
</author>
<published>2003-01-31T12:24:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=21c8dcc7ac693f07abf82b5ddbeb032044dbf7a9'/>
<id>urn:sha1:21c8dcc7ac693f07abf82b5ddbeb032044dbf7a9</id>
<content type='text'>
Yes, binary files. But before you scream in angst, please realize that they
do have a marked purpose for exporting certain types of data from the kernel.

Basically, they are for exporting blobs of data that likely have some structure,
but that the kernel has no control over. This includes VPD data from device
headers, EDD data, or CPU microcode. Instead of parsing the data, then
formatting in a certain way, only so userspace can parse the data again, we
just shove it out in a binary blob to userspace, and let them deal with it.

Anyway, it defines a struct bin_attribute, with read() and write() methods
for the data. A read call should set the pointer in the sysfs_bin_buffer
object that is passed in. 

A write call receives a buffer ptr, too, and must obey the count/offset 
fields for correct data. 
</content>
</entry>
<entry>
<title>sysfs: split up inode.c into different files for different purposes.</title>
<updated>2003-01-30T08:58:02Z</updated>
<author>
<name>Patrick Mochel</name>
<email>mochel@osdl.org</email>
</author>
<published>2003-01-30T08:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f7a5d012daa8a4a49684a25f2c134da3055058f8'/>
<id>urn:sha1:f7a5d012daa8a4a49684a25f2c134da3055058f8</id>
<content type='text'>
- new files file.c, dir.c, symlink.c, mount.c.

- Purely cosmetic (for now). Should make it easier to add new filetypes.
</content>
</entry>
<entry>
<title>[PATCH] Remove Rules.make from Makefiles (3/3)</title>
<updated>2002-12-15T03:41:56Z</updated>
<author>
<name>Brian Gerst</name>
<email>bgerst@didntduck.org</email>
</author>
<published>2002-12-15T03:41:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0b319ed0ada2e2bd43f38c65a1ce5b1492a40b6d'/>
<id>urn:sha1:0b319ed0ada2e2bd43f38c65a1ce5b1492a40b6d</id>
<content type='text'>
Makefiles no longer need to include Rules.make, which is currently an
empty file.  This patch removes it from the remaining Makefiles, and
removes the empty Rules.make file.
</content>
</entry>
<entry>
<title>add sysfs filesystem, maintaining the driverfs revision history.</title>
<updated>2002-10-17T08:18:53Z</updated>
<author>
<name>Patrick Mochel</name>
<email>mochel@osdl.org</email>
</author>
<published>2002-10-17T08:18:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cb80c2ac748b53d3b56c0adf9999c8cfe49aa406'/>
<id>urn:sha1:cb80c2ac748b53d3b56c0adf9999c8cfe49aa406</id>
<content type='text'>
</content>
</entry>
</feed>
