<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux-bitkeeper.git/lib/kobject_uevent.c, branch master</title>
<subtitle>Linux Kernel BitKeeper History</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/atom?h=master</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/'/>
<updated>2005-01-08T06:09:06Z</updated>
<entry>
<title>[PATCH] Lock initializer cleanup (Core)</title>
<updated>2005-01-08T06:09:06Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2005-01-08T06:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=44b7f61e2868c2d4895c93b0d3382389a7a66f6b'/>
<id>urn:sha1:44b7f61e2868c2d4895c93b0d3382389a7a66f6b</id>
<content type='text'>
Kernel core files converted to use the new lock initializers.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Driver Core: restore comment in kobject_uevent.c</title>
<updated>2004-12-03T04:40:41Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>greg@kroah.com</email>
</author>
<published>2004-12-03T04:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=ea2e10e57a47bc786f37f3737d35f0144ac06d45'/>
<id>urn:sha1:ea2e10e57a47bc786f37f3737d35f0144ac06d45</id>
<content type='text'>
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] print hotplug SEQNUM as unsigned</title>
<updated>2004-11-12T03:43:49Z</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2004-11-12T03:43:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=475e7697caf112bb2df83e00f60d327412082215'/>
<id>urn:sha1:475e7697caf112bb2df83e00f60d327412082215</id>
<content type='text'>
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add KOBJ_ONLINE</title>
<updated>2004-11-12T03:42:28Z</updated>
<author>
<name>Anil Keshavamurthy</name>
<email>anil.s.keshavamurthy@intel.com</email>
</author>
<published>2004-11-12T03:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=3441a749f59f69631a859798e6da456857dba7f1'/>
<id>urn:sha1:3441a749f59f69631a859798e6da456857dba7f1</id>
<content type='text'>
I am trying to fix the current ACPI container.ko and processor.ko to use
kobject_hotplug() for notification. For this I would be requiring the
KOBJ_ONLINE definitions to be added to kobject_action.

Signed-off-by: Anil Keshavamurty &lt;anil.s.keshavamurthy@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] kobject_uevent: fix init ordering</title>
<updated>2004-11-04T04:00:12Z</updated>
<author>
<name>Robert Love</name>
<email>rml@novell.com</email>
</author>
<published>2004-11-04T04:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=7371f3e13c81d7d991e2911d5355ece93f7aced6'/>
<id>urn:sha1:7371f3e13c81d7d991e2911d5355ece93f7aced6</id>
<content type='text'>
Looks like kobject_uevent_init is executed before netlink_proto_init and
consequently always fails.  Not cool.

Attached patch switches the initialization over from core_initcall (init
level 1) to postcore_initcall (init level 2).  Netlink's initialization
is done in core_initcall, so this should fix the problem.  We should be
fine waiting until postcore_initcall.

Also a couple white space changes mixed in, because I am anal.

Signed-Off-By: Robert Love &lt;rml@novell.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>kevent: fix build error if CONFIG_KOBJECT_UEVENT is not selected.</title>
<updated>2004-11-04T03:59:39Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>greg@kroah.com</email>
</author>
<published>2004-11-04T03:59:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=07b8bb0fb7b0a3184b348caa8ddbf96c2cef44c4'/>
<id>urn:sha1:07b8bb0fb7b0a3184b348caa8ddbf96c2cef44c4</id>
<content type='text'>
Thanks to Serge Hallyn &lt;serue@us.ibm.com&gt; for pointing this out.

Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] take me home, hotplug_path[]</title>
<updated>2004-11-01T05:06:49Z</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2004-11-01T05:06:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=6f1780569c67765e1fef8754fc1812714b85e4d0'/>
<id>urn:sha1:6f1780569c67765e1fef8754fc1812714b85e4d0</id>
<content type='text'>
Move hotplug_path[] out of kmod.[ch] to kobject_uevent.[ch] where
it belongs now. At some time in the future we should fix the remaining bad
hotplug calls (no SEQNUM, no netlink uevent):

  ./drivers/input/input.c (no DEVPATH on some hotplug events!)
  ./drivers/pnp/pnpbios/core.c
  ./drivers/s390/crypto/z90main.c

Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] kobject: fix hotplug bug with seqnum</title>
<updated>2004-11-01T05:06:02Z</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2004-11-01T05:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=a6391b5b189187af9f47c473ec9ffc515d05536e'/>
<id>urn:sha1:a6391b5b189187af9f47c473ec9ffc515d05536e</id>
<content type='text'>
On Sat, Oct 30, 2004 at 04:54:29AM +0200, Kay Sievers wrote:
&gt; On Sat, Oct 30, 2004 at 02:25:23AM +0200, Kay Sievers wrote:
&gt; &gt; On Sat, Oct 30, 2004 at 02:00:45AM +0200, Kay Sievers wrote:
&gt; &gt; &gt; On Fri, Oct 29, 2004 at 06:13:19PM -0500, Greg KH wrote:
&gt; &gt; &gt; &gt; On Fri, Oct 29, 2004 at 11:28:56PM +0200, Kay Sievers wrote:
&gt; &gt; &gt; &gt; &gt; &gt; But there might still be a problem.  With this change, the sequence
&gt; &gt; &gt; &gt; &gt; &gt; number is not sent out the kevent message.  Kay, do you think this is an
&gt; &gt; &gt; &gt; &gt; &gt; issue?  I don't think we can get netlink messages out of order, right?
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Right, especially not the events with the same DEVPATH, like "remove"
&gt; &gt; &gt; &gt; &gt; beating an "add". But I'm not sure if the number isn't useful. Whatever
&gt; &gt; &gt; &gt; &gt; we may do with the hotplug over netlink in the future, we will only have
&gt; &gt; &gt; &gt; &gt; /sbin/hotplug for the early boot and it may be nice to know, what events
&gt; &gt; &gt; &gt; &gt; we have already handled...
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; I'll hold off on applying this patch until we figure this out...
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; How about just reserving 20 bytes for the number (u64 will never be
&gt; &gt; &gt; &gt; &gt; more than that), save the pointer to that field, and fill the number in
&gt; &gt; &gt; &gt; &gt; later?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Ah, something like this instead?  I like it, it's even smaller than the
&gt; &gt; &gt; &gt; previous patch.  Compile tested only...
&gt; &gt; &gt;
&gt; &gt; &gt; I like that. How about the following. It will keep the buffer clean from
&gt; &gt; &gt; random chars, cause the kevent does not have the vector and relies on
&gt; &gt; &gt; the '\0' to separate the strings from each other.
&gt; &gt; &gt; I've tested it. The netlink-hotplug message looks like this:
&gt; &gt; &gt;
&gt; &gt; &gt; recv(3, "remove@/class/input/mouse2\0ACTION=remove\0DEVPATH=/class/input/mouse2\0SUBSYSTEM=input\0SEQNUM=961                 \0", 1024, 0) = 113
&gt; &gt;
&gt; &gt; Hmm, these trailing spaces are just bad, sorry. I'll better pass the
&gt; &gt; envp array over to send_uevent() and clean up the keys while copying
&gt; &gt; the env values into the skb buffer. This will make the event payload
&gt; &gt; more safe too. So your first version looks better.
&gt;
&gt; How about this? We copy over key by key into the skb buffer and the
&gt; netlink message can get the envp array without depending on a single
&gt; continuous buffer.
&gt;
&gt; The netlink message looks nice like this now:
&gt;
&gt; recv(3, "
&gt;   add@/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0\0
&gt;   HOME=/\0
&gt;   PATH=/sbin:/bin:/usr/sbin:/usr/bin\0
&gt;   ACTION=add\0
&gt;   DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0\0
&gt;   SUBSYSTEM=usb\0
&gt;   SEQNUM=991\0
&gt;   DEVICE=/proc/bus/usb/003/008\0
&gt;   PRODUCT=46d/c03e/2000\0
&gt;   TYPE=0/0/0\0
&gt;   INTERFACE=3/1/2\0
&gt; ", 1024, 0) = 268

Here is an improved version that uses skb_put() to fill the skb buffer,
instead of trimming the buffer to the final size after we've copied over
all keys.


Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>hotplug: prevent skips in sequence number from happening</title>
<updated>2004-10-22T08:43:17Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>greg@kroah.com</email>
</author>
<published>2004-10-22T08:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=48a7c3ab870172255c83c121f6dab1928105efdf'/>
<id>urn:sha1:48a7c3ab870172255c83c121f6dab1928105efdf</id>
<content type='text'>
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] kobject_uevent warning fix</title>
<updated>2004-10-22T07:30:22Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2004-10-22T07:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=1c1355b29e9bfb042ff146c5e6a8d75c420ea596'/>
<id>urn:sha1:1c1355b29e9bfb042ff146c5e6a8d75c420ea596</id>
<content type='text'>
lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;greg@kroah.com&gt;
</content>
</entry>
</feed>
