Lines Matching defs:file
3 * event_inode.c - part of tracefs, a pseudo file system for activating tracing
108 static int eventfs_iterate(struct file *file, struct dir_context *ctx);
162 * If this is a dir, then update the ei cache, only the file
321 * lookup_file - look up a file in the tracefs filesystem
323 * @mode: the permission that the file should have.
326 * @fop: struct file_operations that should be used for this file.
328 * This function creates a dentry that represents a file in the eventsfs_inode
439 * lookup_file_dentry - create a dentry for a file of an eventfs_inode
440 * @ei: the eventfs_inode that the file will be created under
442 * @parent: The parent dentry of the created file.
443 * @name: The name of the file to create
444 * @mode: The mode of the file.
445 * @data: The data to use to set the inode of the file with on open()
446 * @fops: The fops of the file to be created.
448 * Create a dentry for a file of an eventfs_inode @ei and place it into the
466 * eventfs_root_lookup - lookup routine to create file/dir
468 * @dentry: file/dir dentry
471 * Used to create dynamic file/dir with-in @dir, search with-in @ei
472 * list, if @dentry found go ahead and create the file/dir
528 static int eventfs_iterate(struct file *file, struct dir_context *ctx)
531 struct inode *f_inode = file_inode(file);
543 if (!dir_emit_dots(file, ctx))
644 * The name is the name of the file, and the callback is a pointer to a function
645 * that will be called when the file is reference (either by lookup or by
651 * When a file needs to be created, this callback will be called with
652 * name = the name of the file being created (so that the same callback
654 * mode = a place to set the file's mode
656 * cause the file created to pass the new data to the open() call.
657 * fops = the fops to use for the created file.
698 * @parent: Parent dentry for this file in the tracefs directory.
794 * eventfs_remove_rec - remove eventfs dir or file from list
810 * 3 - events/group/event/file
824 * eventfs_remove_dir - remove eventfs dir or file from list