- 18 Nov, 2002 40 commits
-
-
Patrick Mochel authored
The interface should now be more sane and protect against races better. kobject_register() was split into two helpers: kobject_init() and kobject_add(). It calls both consecutively, though both are also exposed for use by users that want to use the objects w/o adding them to the object hierarchy. kobject_unregister() was made simply a wrapper for kobject_del() and kobject_put(), which are both also exposed. The guts of kobject_put() was moved into kobject_cleanup(), which it calls when the reference count hits 0. (This was done for clarity). The infrastructure now takes a lot in kobject_get() and kobject_put() when checking and modifying the objects' reference counts. This was an obvious one that hsould have been fixed long ago. kobject_add() increments the refcount of the object, which is decremented when kobject_del() is called. This guarantees that the object's memory cannot be freed if it has been added to the hierarchy, and kobject_del() has not been called on it. kobject_init() is now the function that increments the refcount on the object's subsystem, which is decremented only after its release() method has been called for the object in kobject_cleanup(). The documentation has been updated to reflect these changes.
-
Patrick Mochel authored
-
Patrick Mochel authored
I thought this had been fixed some time ago, but must have never been picked up..
-
Patrick Mochel authored
Convert it to #undef DEBUG.
-
Patrick Mochel authored
devclass_{add,remove}_driver() had been implemented, but had never been called.
-
Patrick Mochel authored
This way, we make sure the driver gets added to the class's list and is exported correctly in sysfs.
-
Patrick Mochel authored
...since macro using it was changed from #if to #ifdef..
-
Art Haas authored
Sorry about sending the screwed up patches the first time. Here's the fix for the two missing "{".
-
Matthew Wilcox authored
-
Matthew Wilcox authored
-
Luca Barbieri authored
This patch makes the futex code check utime only when waiting. This makes it possible to do futex wakes without clearing the register containing the utime parameter. The code also becomes cleaner.
-
Luca Barbieri authored
This patch moves retval = -ENOMEM out of the vma loop and after the fail_nomem label. The fail label is added and is used when retval is already set.
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Art Haas authored
-
Linus Torvalds authored
-
Adrian Bunk authored
-
William Lee Irwin III authored
Make sure the non-boot CPU's aren't taking interrupts before they are ready..
-
Maneesh Soni authored
This cleans up the dcache code to always use the proper dcache functions (d_unhashed and __d_drop) instead of accessing the dentry lists directly. In other words: use "d_unhashed(dentry)" instead of doing a manual "list_empty(&dentry->d_hash)" test. And use "__d_drop(dentry)" instead of doing "list_del_init(&dentry->d_hash)" by hand. This will help the dcache-rcu patches.
-
Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Arnaldo Carvalho de Melo authored
-
Arnaldo Carvalho de Melo authored
-
Arnaldo Carvalho de Melo authored
Also some cleanups wrt struct member initialization style.
-