Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\kobject.h Create Date:2022-07-28 05:44:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kobject_has_children - Returns whether a kobject has children.*@kobj: the object to test* This will return whether a kobject has other kobjects as children.* It does NOT account for the presence of attribute files, only sub* directories

Proto:static inline bool kobject_has_children(struct kobject *kobj)

Type:bool

Parameter:

TypeParameterName
struct kobject *kobj
134  WARN_ON_ONCE(kref_read( & kref) == 0)
136  Return sysfs directory entry && subdirs