1DEBUGFS_CREATE_DIR(9)       The debugfs filesystem       DEBUGFS_CREATE_DIR(9)
2
3
4

NAME

6       debugfs_create_dir - create a directory in the debugfs filesystem
7

SYNOPSIS

9       struct dentry * debugfs_create_dir(const char * name,
10                                          struct dentry * parent);
11

ARGUMENTS

13       name
14           a pointer to a string containing the name of the directory to
15           create.
16
17       parent
18           a pointer to the parent dentry for this file. This should be a
19           directory dentry if set. If this paramater is NULL, then the
20           directory will be created in the root of the debugfs filesystem.
21

DESCRIPTION

23       This function creates a directory in debugfs with the given name.
24
25       This function will return a pointer to a dentry if it succeeds. This
26       pointer must be passed to the debugfs_remove function when the file is
27       to be removed (no automatic cleanup happens if your module is unloaded,
28       you are responsible here.) If an error occurs, NULL will be returned.
29
30       If debugfs is not enabled in the kernel, the value -ENODEV will be
31       returned.
32
34Kernel Hackers Manual 3.10         June 2019             DEBUGFS_CREATE_DIR(9)
Impressum