Lines Matching defs:file

78  * within a file a user_event might be created if it does not
152 * Stores per-file events references, as users register events
153 * within a file this structure is modified and freed via RCU.
154 * The lifetime of this struct is tied to the lifetime of the file.
155 * These are not shared and only accessible by the file that created it.
1468 * switch to root file permission to allow for this scenario.
1588 * Writes the user supplied payload out to a trace file.
1593 struct trace_event_file *file;
1598 file = (struct trace_event_file *)tpdata;
1600 if (!file ||
1601 !(file->flags & EVENT_FILE_FL_ENABLED) ||
1602 trace_trigger_soft_disabled(file))
1606 entry = trace_event_buffer_reserve(&event_buffer, file, size);
2168 static ssize_t user_events_write_core(struct file *file, struct iov_iter *i)
2170 struct user_event_file_info *info = file->private_data;
2190 * shall be immutable while the file is opened.
2244 static int user_events_open(struct inode *node, struct file *file)
2261 file->private_data = info;
2266 static ssize_t user_events_write(struct file *file, const char __user *ubuf,
2277 return user_events_write_core(file, &i);
2438 * reference count, not this file. If anything fails, the user_event
2439 * still has a reference until the file is released. During release
2604 static long user_events_ioctl(struct file *file, unsigned int cmd,
2607 struct user_event_file_info *info = file->private_data;
2635 * Handles the final close of the file from user mode.
2637 static int user_events_release(struct inode *node, struct file *file)
2639 struct user_event_file_info *info = file->private_data;
2661 * The lifetime of refs has reached an end, it's tied to this file.
2669 file->private_data = NULL;
2756 static int user_status_open(struct inode *node, struct file *file)
2766 ret = seq_open(file, &user_seq_ops);
2770 struct seq_file *m = file->private_data;