Lines Matching full:file

2  *  file.c - part of debugfs, a tiny little debug file system
24 static ssize_t default_read_file(struct file *file, char __user *buf, in default_read_file() argument
30 static ssize_t default_write_file(struct file *file, const char __user *buf, in default_write_file() argument
36 static int default_open(struct inode *inode, struct file *file) in default_open() argument
39 file->private_data = inode->i_private; in default_open()
77 * debugfs_create_u8 - create a debugfs file that is used to read and write an unsigned 8-bit value
78 * @name: a pointer to a string containing the name of the file to create.
79 * @mode: the permission that the file should have
80 * @parent: a pointer to the parent dentry for this file. This should be a
82 * file will be created in the root of the debugfs filesystem.
83 * @value: a pointer to the variable that the file should read to and write
86 * This function creates a file in debugfs with the given name that
91 * pointer must be passed to the debugfs_remove() function when the file is
129 …* debugfs_create_u16 - create a debugfs file that is used to read and write an unsigned 16-bit val…
130 * @name: a pointer to a string containing the name of the file to create.
131 * @mode: the permission that the file should have
132 * @parent: a pointer to the parent dentry for this file. This should be a
134 * file will be created in the root of the debugfs filesystem.
135 * @value: a pointer to the variable that the file should read to and write
138 * This function creates a file in debugfs with the given name that
143 * pointer must be passed to the debugfs_remove() function when the file is
181 …* debugfs_create_u32 - create a debugfs file that is used to read and write an unsigned 32-bit val…
182 * @name: a pointer to a string containing the name of the file to create.
183 * @mode: the permission that the file should have
184 * @parent: a pointer to the parent dentry for this file. This should be a
186 * file will be created in the root of the debugfs filesystem.
187 * @value: a pointer to the variable that the file should read to and write
190 * This function creates a file in debugfs with the given name that
195 * pointer must be passed to the debugfs_remove() function when the file is
234 …* debugfs_create_u64 - create a debugfs file that is used to read and write an unsigned 64-bit val…
235 * @name: a pointer to a string containing the name of the file to create.
236 * @mode: the permission that the file should have
237 * @parent: a pointer to the parent dentry for this file. This should be a
239 * file will be created in the root of the debugfs filesystem.
240 * @value: a pointer to the variable that the file should read to and write
243 * This function creates a file in debugfs with the given name that
248 * pointer must be passed to the debugfs_remove() function when the file is
286 …* debugfs_create_x{8,16,32,64} - create a debugfs file that is used to read and write an unsigned …
294 * debugfs_create_x8 - create a debugfs file that is used to read and write an unsigned 8-bit value
295 * @name: a pointer to a string containing the name of the file to create.
296 * @mode: the permission that the file should have
297 * @parent: a pointer to the parent dentry for this file. This should be a
299 * file will be created in the root of the debugfs filesystem.
300 * @value: a pointer to the variable that the file should read to and write
318 …* debugfs_create_x16 - create a debugfs file that is used to read and write an unsigned 16-bit val…
319 * @name: a pointer to a string containing the name of the file to create.
320 * @mode: the permission that the file should have
321 * @parent: a pointer to the parent dentry for this file. This should be a
323 * file will be created in the root of the debugfs filesystem.
324 * @value: a pointer to the variable that the file should read to and write
342 …* debugfs_create_x32 - create a debugfs file that is used to read and write an unsigned 32-bit val…
343 * @name: a pointer to a string containing the name of the file to create.
344 * @mode: the permission that the file should have
345 * @parent: a pointer to the parent dentry for this file. This should be a
347 * file will be created in the root of the debugfs filesystem.
348 * @value: a pointer to the variable that the file should read to and write
366 …* debugfs_create_x64 - create a debugfs file that is used to read and write an unsigned 64-bit val…
367 * @name: a pointer to a string containing the name of the file to create.
368 * @mode: the permission that the file should have
369 * @parent: a pointer to the parent dentry for this file. This should be a
371 * file will be created in the root of the debugfs filesystem.
372 * @value: a pointer to the variable that the file should read to and write
397 * debugfs_create_size_t - create a debugfs file that is used to read and write an size_t value
398 * @name: a pointer to a string containing the name of the file to create.
399 * @mode: the permission that the file should have
400 * @parent: a pointer to the parent dentry for this file. This should be a
402 * file will be created in the root of the debugfs filesystem.
403 * @value: a pointer to the variable that the file should read to and write
414 static ssize_t read_file_bool(struct file *file, char __user *user_buf, in read_file_bool() argument
418 u32 *val = file->private_data; in read_file_bool()
429 static ssize_t write_file_bool(struct file *file, const char __user *user_buf, in write_file_bool() argument
435 u32 *val = file->private_data; in write_file_bool()
455 * debugfs_create_bool - create a debugfs file that is used to read and write a boolean value
456 * @name: a pointer to a string containing the name of the file to create.
457 * @mode: the permission that the file should have
458 * @parent: a pointer to the parent dentry for this file. This should be a
460 * file will be created in the root of the debugfs filesystem.
461 * @value: a pointer to the variable that the file should read to and write
464 * This function creates a file in debugfs with the given name that
469 * pointer must be passed to the debugfs_remove() function when the file is
485 static ssize_t read_file_blob(struct file *file, char __user *user_buf, in read_file_blob() argument
488 struct debugfs_blob_wrapper *blob = file->private_data; in read_file_blob()
500 * debugfs_create_blob - create a debugfs file that is used to read a binary blob
501 * @name: a pointer to a string containing the name of the file to create.
502 * @mode: the permission that the file should have
503 * @parent: a pointer to the parent dentry for this file. This should be a
505 * file will be created in the root of the debugfs filesystem.
509 * This function creates a file in debugfs with the given name that exports
514 * pointer must be passed to the debugfs_remove() function when the file is
536 * sequential file or create a debugfs file that only prints a regset32.
577 static int debugfs_open_regset32(struct inode *inode, struct file *file) in debugfs_open_regset32() argument
579 return single_open(file, debugfs_show_regset32, inode->i_private); in debugfs_open_regset32()
590 * debugfs_create_regset32 - create a debugfs file that returns register values
591 * @name: a pointer to a string containing the name of the file to create.
592 * @mode: the permission that the file should have
593 * @parent: a pointer to the parent dentry for this file. This should be a
595 * file will be created in the root of the debugfs filesystem.
600 * This function creates a file in debugfs with the given name that reports
605 * pointer must be passed to the debugfs_remove() function when the file is