From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 03 Sep 2004 09:22:03 +0000 Subject: Re: export of SEQNUM to userspace Message-Id: <20040903092203.GA28640@vrfy.org> List-Id: References: <20040829203523.GA15526@vrfy.org> In-Reply-To: <20040829203523.GA15526@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Sep 03, 2004 at 11:04:02AM +0200, Greg KH wrote: > On Fri, Sep 03, 2004 at 02:21:06AM +0200, Kay Sievers wrote: > > Something like this? > > > > o /sys/kernel/hotplug_seqnum exports the current number > > o lib/kobject.c's sequence_num is renamed to hotplug_seqnum and > > exported by include/linux/kobject.h > > o the source file ksysfs.c in kernel/ creates on init the > > sybsystem "/sys/kernel/" in sysfs > > Nice, I like it. How about this, smaller version instead. I just > changed your code to use the __ATTR* macros and named a few variables a > bit better, no "g" variables for me :) > > Is this ok with you? Sure, looks perfect. Thanks a lot, Kay ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel