]> asedeno.scripts.mit.edu Git - linux.git/commit
kobject: Improve docs for kobject_add/del
authorTobin C. Harding <tobin@kernel.org>
Sun, 28 Apr 2019 00:48:10 +0000 (10:48 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Apr 2019 16:16:03 +0000 (18:16 +0200)
commit92067f843854be0eef1e41ff00cb465247a83c42
tree42612775c8cbaa4be86fee361f34a6b25de8ca7b
parentedb16da34b084c66763f29bee42b4e6bb33c3d66
kobject: Improve docs for kobject_add/del

There is currently some confusion on how to wind back
kobject_init_and_add() during the error paths in code that uses this
function.

Add documentation to kobject_add() and kobject_del() to help clarify the
usage.

Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/kobject.c