aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r--fs/debugfs/inode.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index e8ae3042b806..3ca268d2e5a2 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -162,7 +162,6 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
162 162
163/** 163/**
164 * debugfs_create_file - create a file in the debugfs filesystem 164 * debugfs_create_file - create a file in the debugfs filesystem
165 *
166 * @name: a pointer to a string containing the name of the file to create. 165 * @name: a pointer to a string containing the name of the file to create.
167 * @mode: the permission that the file should have 166 * @mode: the permission that the file should have
168 * @parent: a pointer to the parent dentry for this file. This should be a 167 * @parent: a pointer to the parent dentry for this file. This should be a
@@ -182,11 +181,11 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
182 * This function will return a pointer to a dentry if it succeeds. This 181 * This function will return a pointer to a dentry if it succeeds. This
183 * pointer must be passed to the debugfs_remove() function when the file is 182 * pointer must be passed to the debugfs_remove() function when the file is
184 * to be removed (no automatic cleanup happens if your module is unloaded, 183 * to be removed (no automatic cleanup happens if your module is unloaded,
185 * you are responsible here.) If an error occurs, NULL will be returned. 184 * you are responsible here.) If an error occurs, %NULL will be returned.
186 * 185 *
187 * If debugfs is not enabled in the kernel, the value -ENODEV will be 186 * If debugfs is not enabled in the kernel, the value -%ENODEV will be
188 * returned. It is not wise to check for this value, but rather, check for 187 * returned. It is not wise to check for this value, but rather, check for
189 * NULL or !NULL instead as to eliminate the need for #ifdef in the calling 188 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
190 * code. 189 * code.
191 */ 190 */
192struct dentry *debugfs_create_file(const char *name, mode_t mode, 191struct dentry *debugfs_create_file(const char *name, mode_t mode,
@@ -221,7 +220,6 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
221 220
222/** 221/**
223 * debugfs_create_dir - create a directory in the debugfs filesystem 222 * debugfs_create_dir - create a directory in the debugfs filesystem
224 *
225 * @name: a pointer to a string containing the name of the directory to 223 * @name: a pointer to a string containing the name of the directory to
226 * create. 224 * create.
227 * @parent: a pointer to the parent dentry for this file. This should be a 225 * @parent: a pointer to the parent dentry for this file. This should be a
@@ -233,11 +231,11 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
233 * This function will return a pointer to a dentry if it succeeds. This 231 * This function will return a pointer to a dentry if it succeeds. This
234 * pointer must be passed to the debugfs_remove() function when the file is 232 * pointer must be passed to the debugfs_remove() function when the file is
235 * to be removed (no automatic cleanup happens if your module is unloaded, 233 * to be removed (no automatic cleanup happens if your module is unloaded,
236 * you are responsible here.) If an error occurs, NULL will be returned. 234 * you are responsible here.) If an error occurs, %NULL will be returned.
237 * 235 *
238 * If debugfs is not enabled in the kernel, the value -ENODEV will be 236 * If debugfs is not enabled in the kernel, the value -%ENODEV will be
239 * returned. It is not wise to check for this value, but rather, check for 237 * returned. It is not wise to check for this value, but rather, check for
240 * NULL or !NULL instead as to eliminate the need for #ifdef in the calling 238 * %NULL or !%NULL instead as to eliminate the need for #ifdef in the calling
241 * code. 239 * code.
242 */ 240 */
243struct dentry *debugfs_create_dir(const char *name, struct dentry *parent) 241struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
@@ -250,7 +248,6 @@ EXPORT_SYMBOL_GPL(debugfs_create_dir);
250 248
251/** 249/**
252 * debugfs_remove - removes a file or directory from the debugfs filesystem 250 * debugfs_remove - removes a file or directory from the debugfs filesystem
253 *
254 * @dentry: a pointer to a the dentry of the file or directory to be 251 * @dentry: a pointer to a the dentry of the file or directory to be
255 * removed. 252 * removed.
256 * 253 *