Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: move the kref doc into the core-api book

This document covers core kernel objects. So, add it into the core-api
book.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/f385af13b4a6d3ff8c89beedd4506900e79ca72e.1588345503.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
1ac00669 e00b0ab8

+2 -1
+1
Documentation/core-api/index.rst
··· 31 31 :maxdepth: 1 32 32 33 33 kobject 34 + kref 34 35 assoc_array 35 36 xarray 36 37 idr
+1 -1
Documentation/core-api/kobject.rst
··· 210 210 If all that you want to use a kobject for is to provide a reference counter 211 211 for your structure, please use the struct kref instead; a kobject would be 212 212 overkill. For more information on how to use struct kref, please see the 213 - file Documentation/kref.txt in the Linux kernel source tree. 213 + file Documentation/core-api/kref.rst in the Linux kernel source tree. 214 214 215 215 216 216 Creating "simple" kobjects
Documentation/kref.txt Documentation/core-api/kref.rst