1CDEV_SET_PARENT(9)               Char devices               CDEV_SET_PARENT(9)
2
3
4

NAME

6       cdev_set_parent - set the parent kobject for a char device
7

SYNOPSIS

9       void cdev_set_parent(struct cdev * p, struct kobject * kobj);
10

ARGUMENTS

12       p
13           the cdev structure
14
15       kobj
16           the kobject to take a reference to
17

DESCRIPTION

19       cdev_set_parent sets a parent kobject which will be referenced
20       appropriately so the parent is not freed before the cdev. This should
21       be called before cdev_add.
22
24Kernel Hackers Manual 3.10         June 2019                CDEV_SET_PARENT(9)
Impressum