table of contents
CDEV_SET_PARENT(9) | Char devices | CDEV_SET_PARENT(9) |
NAME¶
cdev_set_parent - set the parent kobject for a char device
SYNOPSIS¶
void cdev_set_parent(struct cdev * p, struct kobject * kobj);
ARGUMENTS¶
p
the cdev structure
kobj
the kobject to take a reference to
DESCRIPTION¶
cdev_set_parent sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |