1DEBUGFS_CREATE_SYMLI(9) The debugfs filesystem DEBUGFS_CREATE_SYMLI(9)
2
3
4
6 debugfs_create_symlink - create a symbolic link in the debugfs
7 filesystem
8
10 struct dentry * debugfs_create_symlink(const char * name,
11 struct dentry * parent,
12 const char * target);
13
15 name
16 a pointer to a string containing the name of the symbolic link to
17 create.
18
19 parent
20 a pointer to the parent dentry for this symbolic link. This should
21 be a directory dentry if set. If this paramater is NULL, then the
22 symbolic link will be created in the root of the debugfs
23 filesystem.
24
25 target
26 a pointer to a string containing the path to the target of the
27 symbolic link.
28
30 This function creates a symbolic link with the given name in debugfs
31 that links to the given target path.
32
33 This function will return a pointer to a dentry if it succeeds. This
34 pointer must be passed to the debugfs_remove function when the symbolic
35 link is to be removed (no automatic cleanup happens if your module is
36 unloaded, you are responsible here.) If an error occurs, NULL will be
37 returned.
38
39 If debugfs is not enabled in the kernel, the value -ENODEV will be
40 returned.
41
43Kernel Hackers Manual 3.10 June 2019 DEBUGFS_CREATE_SYMLI(9)