Commit Graph
9 Commits
Author SHA1 Message Date
Mauro Carvalho Chehab d6ac1c7e2f kref.txt: standardize document format
Each text file under Documentation follows a different
format. Some doesn't even have titles!

Change its representation to follow the adopted standard,
using ReST markups for it to be parseable by Sphinx:

- add a title for the document and section titles;
- move authorship information to the beginning and use
  :Author:
- mark literal blocks as such and ident them if needed.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
2017-07-14 13:51:45 -06:00
Thomas Hellstrom fd0f50db2e Revert "kref: double kref_put() in my_data_handler()"
This reverts commit 8f1ecc9fbc.

The correction is incorrect, see discussion at

http://stackoverflow.com/questions/20093127/why-kref-doc-of-linux-kernel-omits-kref-put-when-kthread-run-fail

Reported-by: KrishnamRaju raju <[email protected]>
Cc: Roel Kluin <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: KrishnamRaju raju <[email protected]>
Signed-off-by: Thomas Hellstrom <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2017-04-08 18:38:10 +02:00
Thomas Hellstrom a82b8db02f kref: Add kref_get_unless_zero documentation
Document how kref_get_unless_zero should be used and how it helps
solve a typical kref / locking problem.

Signed-off-by: Thomas Hellstrom <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
2012-11-28 18:36:06 +10:00
Javi Merino d5c97c1099 kref: Fix typo in kref documentation
container_of() should refer to the struct created in the example.

Signed-off-by: Javi Merino <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-03-07 13:20:05 -08:00
Roel Kluin 8f1ecc9fbc kref: double kref_put() in my_data_handler()
The kref_put() already occurs after the out label

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2009-09-18 09:48:52 -07:00
Daniel Walker 1373bed34e docs: convert kref semaphore to mutex
Just converting this documentation semaphore reference, since we don't
want to promote semaphore usage.

Signed-off-by: Daniel Walker <[email protected]>
Acked-by: Corey Minyard <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2008-02-06 10:41:09 -08:00
Satyam Sharma b7cc4a879c Fix wrong identifier name in Documentation/kref.txt
There's a typo / wrong identifier name in Documentation/kref.txt. Fix it.

Signed-off-by: Satyam Sharma <[email protected]>
Acked-by: Corey Minyard <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
2007-05-11 19:07:14 +02:00
[email protected] 6f31e42221 [PATCH] kref: add link to original documentation to the kref documentation.
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2005-04-18 21:57:30 -07:00
[email protected] 5c11c52046 [PATCH] kref: add documentation
Add some documentation for krefs.

Signed-off-by: Corey Minyard <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2005-04-18 21:57:30 -07:00