Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 50) sorted by relevance

12

/kernel/bpf/
Dinode.c81 static struct inode *bpf_get_inode(struct super_block *sb, in bpf_get_inode()
82 const struct inode *dir, in bpf_get_inode()
85 struct inode *inode; in bpf_get_inode() local
96 inode = new_inode(sb); in bpf_get_inode()
97 if (!inode) in bpf_get_inode()
100 inode->i_ino = get_next_ino(); in bpf_get_inode()
101 inode->i_atime = current_time(inode); in bpf_get_inode()
102 inode->i_mtime = inode->i_atime; in bpf_get_inode()
103 inode->i_ctime = inode->i_atime; in bpf_get_inode()
105 inode_init_owner(inode, dir, mode); in bpf_get_inode()
[all …]
/kernel/
Daudit_fsnotify.c68 const struct inode *inode) in audit_update_mark() argument
70 audit_mark->dev = inode ? inode->i_sb->s_dev : AUDIT_DEV_UNSET; in audit_update_mark()
71 audit_mark->ino = inode ? inode->i_ino : AUDIT_INO_UNSET; in audit_update_mark()
79 struct inode *inode; in audit_alloc_mark() local
88 inode = path.dentry->d_inode; in audit_alloc_mark()
89 inode_unlock(inode); in audit_alloc_mark()
103 ret = fsnotify_add_inode_mark(&audit_mark->mark, inode, true); in audit_alloc_mark()
156 struct inode *to_tell, in audit_mark_handle_event()
163 const struct inode *inode = NULL; in audit_mark_handle_event() local
171 inode = ((const struct path *)data)->dentry->d_inode; in audit_mark_handle_event()
[all …]
Daudit_watch.c88 static inline struct audit_parent *audit_find_parent(struct inode *inode) in audit_find_parent() argument
93 entry = fsnotify_find_mark(&inode->i_fsnotify_marks, audit_watch_group); in audit_find_parent()
138 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent() local
150 ret = fsnotify_add_inode_mark(&parent->mark, inode, 0); in audit_init_parent()
470 struct inode *to_tell, in audit_watch_handle_event()
476 const struct inode *inode; in audit_watch_handle_event() local
485 inode = d_backing_inode(((const struct path *)data)->dentry); in audit_watch_handle_event()
488 inode = (const struct inode *)data; in audit_watch_handle_event()
492 inode = NULL; in audit_watch_handle_event()
496 if (mask & (FS_CREATE|FS_MOVED_TO) && inode) in audit_watch_handle_event()
[all …]
Dcapability.c487 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode) in privileged_wrt_inode_uidgid() argument
489 return kuid_has_mapping(ns, inode->i_uid) && in privileged_wrt_inode_uidgid()
490 kgid_has_mapping(ns, inode->i_gid); in privileged_wrt_inode_uidgid()
502 bool capable_wrt_inode_uidgid(const struct inode *inode, int cap) in capable_wrt_inode_uidgid() argument
506 return ns_capable(ns, cap) && privileged_wrt_inode_uidgid(ns, inode); in capable_wrt_inode_uidgid()
Daudit_tree.c215 static unsigned long inode_to_key(const struct inode *inode) in inode_to_key() argument
218 return (unsigned long)&inode->i_fsnotify_marks; in inode_to_key()
244 struct audit_chunk *audit_tree_lookup(const struct inode *inode) in audit_tree_lookup() argument
246 unsigned long key = inode_to_key(inode); in audit_tree_lookup()
399 static int create_chunk(struct inode *inode, struct audit_tree *tree) in create_chunk() argument
416 if (fsnotify_add_inode_mark_locked(mark, inode, 0)) { in create_chunk()
442 chunk->key = inode_to_key(inode); in create_chunk()
460 static int tag_chunk(struct inode *inode, struct audit_tree *tree) in tag_chunk() argument
468 mark = fsnotify_find_mark(&inode->i_fsnotify_marks, audit_tree_group); in tag_chunk()
470 return create_chunk(inode, tree); in tag_chunk()
[all …]
Dauditsc.c1736 static inline void handle_one(const struct inode *inode) in handle_one() argument
1742 if (likely(!inode->i_fsnotify_marks)) in handle_one()
1748 chunk = audit_tree_lookup(inode); in handle_one()
1782 struct inode *inode = d_backing_inode(d); in handle_path() local
1783 if (inode && unlikely(inode->i_fsnotify_marks)) { in handle_path()
1785 chunk = audit_tree_lookup(inode); in handle_path()
1922 struct inode *inode, unsigned int flags) in audit_copy_inode() argument
1924 name->ino = inode->i_ino; in audit_copy_inode()
1925 name->dev = inode->i_sb->s_dev; in audit_copy_inode()
1926 name->mode = inode->i_mode; in audit_copy_inode()
[all …]
Dcred.c778 int set_create_files_as(struct cred *new, struct inode *inode) in set_create_files_as() argument
780 if (!uid_valid(inode->i_uid) || !gid_valid(inode->i_gid)) in set_create_files_as()
782 new->fsuid = inode->i_uid; in set_create_files_as()
783 new->fsgid = inode->i_gid; in set_create_files_as()
784 return security_kernel_create_files_as(new, inode); in set_create_files_as()
/kernel/events/
Duprobes.c62 struct inode *inode; /* Also hold a ref to inode */ member
355 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma()
418 d > 0 ? "increment" : "decrement", uprobe->inode->i_ino, in update_ref_ctr_warn()
624 if (l->inode < r->inode) in match_uprobe()
627 if (l->inode > r->inode) in match_uprobe()
639 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe() argument
641 struct uprobe u = { .inode = inode, .offset = offset }; in __find_uprobe()
664 static struct uprobe *find_uprobe(struct inode *inode, loff_t offset) in find_uprobe() argument
669 uprobe = __find_uprobe(inode, offset); in find_uprobe()
729 uprobe->inode->i_ino, (unsigned long long) uprobe->offset, in ref_ctr_mismatch_warn()
[all …]
/kernel/trace/
Dtrace.c4054 static inline int tracing_get_cpu(struct inode *inode) in tracing_get_cpu() argument
4056 if (inode->i_cdev) /* See trace_create_cpu_file() */ in tracing_get_cpu()
4057 return (long)inode->i_cdev - 1; in tracing_get_cpu()
4069 __tracing_open(struct inode *inode, struct file *file, bool snapshot) in __tracing_open() argument
4071 struct trace_array *tr = inode->i_private; in __tracing_open()
4112 iter->cpu_file = tracing_get_cpu(inode); in __tracing_open()
4161 seq_release_private(inode, file); in __tracing_open()
4165 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic() argument
4173 filp->private_data = inode->i_private; in tracing_open_generic()
4186 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr() argument
[all …]
Dtrace_events.c1293 static int trace_format_open(struct inode *inode, struct file *file) in trace_format_open() argument
1390 static int subsystem_open(struct inode *inode, struct file *filp) in subsystem_open() argument
1405 if (dir == inode->i_private) { in subsystem_open()
1431 ret = tracing_open_generic(inode, filp); in subsystem_open()
1440 static int system_tr_open(struct inode *inode, struct file *filp) in system_tr_open() argument
1443 struct trace_array *tr = inode->i_private; in system_tr_open()
1451 ret = tracing_open_generic_tr(inode, filp); in system_tr_open()
1462 static int subsystem_release(struct inode *inode, struct file *file) in subsystem_release() argument
1654 static int ftrace_event_avail_open(struct inode *inode, struct file *file);
1655 static int ftrace_event_set_open(struct inode *inode, struct file *file);
[all …]
Dtrace_stack.c477 static int stack_trace_open(struct inode *inode, struct file *file) in stack_trace_open() argument
498 stack_trace_filter_open(struct inode *inode, struct file *file) in stack_trace_filter_open() argument
500 struct ftrace_ops *ops = inode->i_private; in stack_trace_filter_open()
504 inode, file); in stack_trace_filter_open()
Dtrace_uprobe.c65 struct inode *inode; member
427 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
491 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
777 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
832 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1059 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1062 ret = uprobe_register_refctr(tu->inode, tu->offset, in trace_uprobe_enable()
1065 ret = uprobe_register(tu->inode, tu->offset, &tu->consumer); in trace_uprobe_enable()
1068 tu->inode = NULL; in trace_uprobe_enable()
1083 if (!tu->inode) in __probe_event_disable()
[all …]
Dtrace_stat.c235 static int tracing_stat_open(struct inode *inode, struct file *file) in tracing_stat_open() argument
239 struct stat_session *session = inode->i_private; in tracing_stat_open()
263 static int tracing_stat_release(struct inode *i, struct file *f) in tracing_stat_release()
Dtrace_events_trigger.c175 static int event_trigger_regex_open(struct inode *inode, struct file *file) in event_trigger_regex_open() argument
278 static int event_trigger_regex_release(struct inode *inode, struct file *file) in event_trigger_regex_release() argument
283 seq_release(inode, file); in event_trigger_regex_release()
298 event_trigger_open(struct inode *inode, struct file *filp) in event_trigger_open() argument
301 return event_trigger_regex_open(inode, filp); in event_trigger_open()
305 event_trigger_release(struct inode *inode, struct file *file) in event_trigger_release() argument
307 return event_trigger_regex_release(inode, file); in event_trigger_release()
Dftrace.c3487 ftrace_avail_open(struct inode *inode, struct file *file) in ftrace_avail_open() argument
3510 ftrace_enabled_open(struct inode *inode, struct file *file) in ftrace_enabled_open() argument
3552 struct inode *inode, struct file *file) in ftrace_regex_open() argument
3639 ftrace_filter_open(struct inode *inode, struct file *file) in ftrace_filter_open() argument
3641 struct ftrace_ops *ops = inode->i_private; in ftrace_filter_open()
3646 inode, file); in ftrace_filter_open()
3650 ftrace_notrace_open(struct inode *inode, struct file *file) in ftrace_notrace_open() argument
3652 struct ftrace_ops *ops = inode->i_private; in ftrace_notrace_open()
3656 inode, file); in ftrace_notrace_open()
5019 int ftrace_regex_release(struct inode *inode, struct file *file) in ftrace_regex_release() argument
[all …]
/kernel/irq/
Dproc.c169 static int irq_affinity_proc_open(struct inode *inode, struct file *file) in irq_affinity_proc_open() argument
171 return single_open(file, irq_affinity_proc_show, PDE_DATA(inode)); in irq_affinity_proc_open()
174 static int irq_affinity_list_proc_open(struct inode *inode, struct file *file) in irq_affinity_list_proc_open() argument
176 return single_open(file, irq_affinity_list_proc_show, PDE_DATA(inode)); in irq_affinity_list_proc_open()
244 static int default_affinity_open(struct inode *inode, struct file *file) in default_affinity_open() argument
246 return single_open(file, default_affinity_show, PDE_DATA(inode)); in default_affinity_open()
Ddebugfs.c175 static int irq_debug_open(struct inode *inode, struct file *file) in irq_debug_open() argument
177 return single_open(file, irq_debug_show, inode->i_private); in irq_debug_open()
/kernel/power/
Dqos.c90 static int pm_qos_power_open(struct inode *inode, struct file *filp);
91 static int pm_qos_power_release(struct inode *inode, struct file *filp);
557 static int pm_qos_power_open(struct inode *inode, struct file *filp) in pm_qos_power_open() argument
561 pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); in pm_qos_power_open()
575 static int pm_qos_power_release(struct inode *inode, struct file *filp) in pm_qos_power_release() argument
Duser.c44 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() argument
64 nonseekable_open(inode, filp); in snapshot_open()
109 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() argument
/kernel/time/
Dposix-clock.c108 static int posix_clock_open(struct inode *inode, struct file *fp) in posix_clock_open() argument
112 container_of(inode->i_cdev, struct posix_clock, cdev); in posix_clock_open()
134 static int posix_clock_release(struct inode *inode, struct file *fp) in posix_clock_release() argument
Dtest_udelay.c95 static int udelay_test_open(struct inode *inode, struct file *file) in udelay_test_open() argument
97 return single_open(file, udelay_test_show, inode->i_private); in udelay_test_open()
/kernel/gcov/
Dfs.c178 static int gcov_seq_open(struct inode *inode, struct file *file) in gcov_seq_open() argument
180 struct gcov_node *node = inode->i_private; in gcov_seq_open()
218 static int gcov_seq_release(struct inode *inode, struct file *file) in gcov_seq_release() argument
229 seq_release(inode, file); in gcov_seq_release()
/kernel/sched/
Dpsi.c992 static int psi_io_open(struct inode *inode, struct file *file) in psi_io_open() argument
997 static int psi_memory_open(struct inode *inode, struct file *file) in psi_memory_open() argument
1002 static int psi_cpu_open(struct inode *inode, struct file *file) in psi_cpu_open() argument
1246 static int psi_fop_release(struct inode *inode, struct file *file) in psi_fop_release() argument
1251 return single_release(inode, file); in psi_fop_release()
Ddebug.c133 struct inode *inode; in sched_feat_write() local
145 inode = file_inode(filp); in sched_feat_write()
147 inode_lock(inode); in sched_feat_write()
149 inode_unlock(inode); in sched_feat_write()
159 static int sched_feat_open(struct inode *inode, struct file *filp) in sched_feat_open() argument
/kernel/locking/
Dlockdep_proc.c587 static int lock_stat_open(struct inode *inode, struct file *file) in lock_stat_open() argument
638 static int lock_stat_release(struct inode *inode, struct file *file) in lock_stat_release() argument
643 return seq_release(inode, file); in lock_stat_release()

12