From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Date: Wed, 02 Feb 2005 20:53:52 +0000 Subject: file creation timing Message-Id: <1107377633.5540.95.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org For memory hotplug, I register each of my memory kobjects, followed by their individual files. I'm seeing races where the hotplug scripts get the event for the main register before all of the control files are there. ret = register_memory(mem, section, NULL); mem_create_simple_file(mem, phys_index); mem_create_simple_file(mem, state); mem_create_simple_file(mem, phys_device); The script sees the /sys/.../memory directory before it sees the "state" file. Is there a handy way around this other than sleeping in the script? Can I somehow delay that registration event? -- Dave ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ 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