Commit 1ac00669 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

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: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/f385af13b4a6d3ff8c89beedd4506900e79ca72e.1588345503.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent e00b0ab8
...@@ -31,6 +31,7 @@ Library functionality that is used throughout the kernel. ...@@ -31,6 +31,7 @@ Library functionality that is used throughout the kernel.
:maxdepth: 1 :maxdepth: 1
kobject kobject
kref
assoc_array assoc_array
xarray xarray
idr idr
......
...@@ -210,7 +210,7 @@ statically and will warn the developer of this improper usage. ...@@ -210,7 +210,7 @@ statically and will warn the developer of this improper usage.
If all that you want to use a kobject for is to provide a reference counter If all that you want to use a kobject for is to provide a reference counter
for your structure, please use the struct kref instead; a kobject would be for your structure, please use the struct kref instead; a kobject would be
overkill. For more information on how to use struct kref, please see the overkill. For more information on how to use struct kref, please see the
file Documentation/kref.txt in the Linux kernel source tree. file Documentation/core-api/kref.rst in the Linux kernel source tree.
Creating "simple" kobjects Creating "simple" kobjects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment