Home
last modified time | relevance | path

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

123

/kernel/bpf/
Dinode.c101 static struct inode *bpf_get_inode(struct super_block *sb, in bpf_get_inode()
102 const struct inode *dir, in bpf_get_inode()
105 struct inode *inode; in bpf_get_inode() local
116 inode = new_inode(sb); in bpf_get_inode()
117 if (!inode) in bpf_get_inode()
120 inode->i_ino = get_next_ino(); in bpf_get_inode()
121 inode->i_atime = inode_set_ctime_current(inode); in bpf_get_inode()
122 inode->i_mtime = inode->i_atime; in bpf_get_inode()
124 inode_init_owner(&nop_mnt_idmap, inode, dir, mode); in bpf_get_inode()
126 return inode; in bpf_get_inode()
[all …]
Dbpf_inode_storage.c27 struct inode *inode = owner; in inode_storage_ptr() local
30 bsb = bpf_inode(inode); in inode_storage_ptr()
36 static struct bpf_local_storage_data *inode_storage_lookup(struct inode *inode, in inode_storage_lookup() argument
44 bsb = bpf_inode(inode); in inode_storage_lookup()
57 void bpf_inode_storage_free(struct inode *inode) in bpf_inode_storage_free() argument
62 bsb = bpf_inode(inode); in bpf_inode_storage_free()
111 static int inode_storage_delete(struct inode *inode, struct bpf_map *map) in inode_storage_delete() argument
115 sdata = inode_storage_lookup(inode, map, false); in inode_storage_delete()
138 BPF_CALL_5(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_5() argument
152 if (!inode || !inode_storage_ptr(inode)) in BPF_CALL_5()
[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, 0); in audit_alloc_mark()
157 struct inode *inode, struct inode *dir, in audit_mark_handle_event() argument
170 audit_update_mark(audit_mark, inode); in audit_mark_handle_event()
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()
469 struct inode *inode, struct inode *dir, in audit_watch_handle_event() argument
479 if (mask & (FS_CREATE|FS_MOVED_TO) && inode) in audit_watch_handle_event()
480 audit_update_watch(parent, dname, inode->i_sb->s_dev, inode->i_ino, 0); in audit_watch_handle_event()
Daudit_tree.c213 static unsigned long inode_to_key(const struct inode *inode) in inode_to_key() argument
216 return (unsigned long)&inode->i_fsnotify_marks; in inode_to_key()
242 struct audit_chunk *audit_tree_lookup(const struct inode *inode) in audit_tree_lookup() argument
244 unsigned long key = inode_to_key(inode); in audit_tree_lookup()
397 static int create_chunk(struct inode *inode, struct audit_tree *tree) in create_chunk() argument
414 if (fsnotify_add_inode_mark_locked(mark, inode, 0)) { in create_chunk()
440 chunk->key = inode_to_key(inode); in create_chunk()
458 static int tag_chunk(struct inode *inode, struct audit_tree *tree) in tag_chunk() argument
466 mark = fsnotify_find_mark(&inode->i_fsnotify_marks, audit_tree_group); in tag_chunk()
468 return create_chunk(inode, tree); in tag_chunk()
[all …]
Dcapability.c477 const struct inode *inode) in privileged_wrt_inode_uidgid() argument
479 return vfsuid_has_mapping(ns, i_uid_into_vfsuid(idmap, inode)) && in privileged_wrt_inode_uidgid()
480 vfsgid_has_mapping(ns, i_gid_into_vfsgid(idmap, inode)); in privileged_wrt_inode_uidgid()
494 const struct inode *inode, int cap) in capable_wrt_inode_uidgid() argument
499 privileged_wrt_inode_uidgid(ns, idmap, inode); in capable_wrt_inode_uidgid()
Dauditsc.c2085 static inline void handle_one(const struct inode *inode) in handle_one() argument
2092 if (likely(!inode->i_fsnotify_marks)) in handle_one()
2098 chunk = audit_tree_lookup(inode); in handle_one()
2132 struct inode *inode = d_backing_inode(d); in handle_path() local
2134 if (inode && unlikely(inode->i_fsnotify_marks)) { in handle_path()
2137 chunk = audit_tree_lookup(inode); in handle_path()
2273 struct inode *inode, unsigned int flags) in audit_copy_inode() argument
2275 name->ino = inode->i_ino; in audit_copy_inode()
2276 name->dev = inode->i_sb->s_dev; in audit_copy_inode()
2277 name->mode = inode->i_mode; in audit_copy_inode()
[all …]
Dcred.c729 int set_create_files_as(struct cred *new, struct inode *inode) in set_create_files_as() argument
731 if (!uid_valid(inode->i_uid) || !gid_valid(inode->i_gid)) in set_create_files_as()
733 new->fsuid = inode->i_uid; in set_create_files_as()
734 new->fsgid = inode->i_gid; in set_create_files_as()
735 return security_kernel_create_files_as(new, inode); in set_create_files_as()
/kernel/events/
Duprobes.c64 struct inode *inode; /* Also hold a ref to inode */ member
348 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma()
411 d > 0 ? "increment" : "decrement", uprobe->inode->i_ino, in update_ref_ctr_warn()
616 int uprobe_cmp(const struct inode *l_inode, const loff_t l_offset, in uprobe_cmp()
619 if (l_inode < r->inode) in uprobe_cmp()
622 if (l_inode > r->inode) in uprobe_cmp()
638 struct inode *inode; member
645 return uprobe_cmp(a->inode, a->offset, __node_2_uprobe(b)); in __uprobe_cmp_key()
651 return uprobe_cmp(u->inode, u->offset, __node_2_uprobe(b)); in __uprobe_cmp()
654 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe() argument
[all …]
/kernel/trace/
Dtrace.c4784 static inline int tracing_get_cpu(struct inode *inode) in tracing_get_cpu() argument
4786 if (inode->i_cdev) /* See trace_create_cpu_file() */ in tracing_get_cpu()
4787 return (long)inode->i_cdev - 1; in tracing_get_cpu()
4818 __tracing_open(struct inode *inode, struct file *file, bool snapshot) in __tracing_open() argument
4820 struct trace_array *tr = inode->i_private; in __tracing_open()
4875 iter->cpu_file = tracing_get_cpu(inode); in __tracing_open()
4926 seq_release_private(inode, file); in __tracing_open()
4930 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic() argument
4938 filp->private_data = inode->i_private; in tracing_open_generic()
4951 int tracing_open_generic_tr(struct inode *inode, struct file *filp) in tracing_open_generic_tr() argument
[all …]
Dtrace_recursion_record.c181 static int recursed_function_open(struct inode *inode, struct file *file) in recursed_function_open() argument
210 static int recursed_function_release(struct inode *inode, struct file *file) in recursed_function_release() argument
213 seq_release(inode, file); in recursed_function_release()
Dtrace_events.c1654 static int trace_format_open(struct inode *inode, struct file *file) in trace_format_open() argument
1753 static int subsystem_open(struct inode *inode, struct file *filp) in subsystem_open() argument
1768 if (iter_dir == inode->i_private) { in subsystem_open()
1793 ret = tracing_open_generic(inode, filp); in subsystem_open()
1802 static int system_tr_open(struct inode *inode, struct file *filp) in system_tr_open() argument
1805 struct trace_array *tr = inode->i_private; in system_tr_open()
1813 ret = tracing_open_generic_tr(inode, filp); in system_tr_open()
1824 static int subsystem_release(struct inode *inode, struct file *file) in subsystem_release() argument
2051 static int ftrace_event_avail_open(struct inode *inode, struct file *file);
2052 static int ftrace_event_set_open(struct inode *inode, struct file *file);
[all …]
Dtrace_stack.c476 static int stack_trace_open(struct inode *inode, struct file *file) in stack_trace_open() argument
497 stack_trace_filter_open(struct inode *inode, struct file *file) in stack_trace_filter_open() argument
499 struct ftrace_ops *ops = inode->i_private; in stack_trace_filter_open()
503 inode, file); in stack_trace_filter_open()
Dtrace_uprobe.c61 struct inode *inode; member
408 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
471 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
780 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
835 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()
1081 if (!tu->inode) in __probe_event_disable()
[all …]
Dtrace_stat.c233 static int tracing_stat_open(struct inode *inode, struct file *file) in tracing_stat_open() argument
237 struct stat_session *session = inode->i_private; in tracing_stat_open()
261 static int tracing_stat_release(struct inode *i, struct file *f) in tracing_stat_release()
Dftrace.c3902 ftrace_avail_open(struct inode *inode, struct file *file) in ftrace_avail_open() argument
3925 ftrace_enabled_open(struct inode *inode, struct file *file) in ftrace_enabled_open() argument
3950 ftrace_touched_open(struct inode *inode, struct file *file) in ftrace_touched_open() argument
3975 ftrace_avail_addrs_open(struct inode *inode, struct file *file) in ftrace_avail_addrs_open() argument
4016 struct inode *inode, struct file *file) in ftrace_regex_open() argument
4103 ftrace_filter_open(struct inode *inode, struct file *file) in ftrace_filter_open() argument
4105 struct ftrace_ops *ops = inode->i_private; in ftrace_filter_open()
4110 inode, file); in ftrace_filter_open()
4114 ftrace_notrace_open(struct inode *inode, struct file *file) in ftrace_notrace_open() argument
4116 struct ftrace_ops *ops = inode->i_private; in ftrace_notrace_open()
[all …]
Dtrace_events_trigger.c206 static int event_trigger_regex_open(struct inode *inode, struct file *file) in event_trigger_regex_open() argument
315 static int event_trigger_regex_release(struct inode *inode, struct file *file) in event_trigger_regex_release() argument
320 seq_release(inode, file); in event_trigger_regex_release()
335 event_trigger_open(struct inode *inode, struct file *filp) in event_trigger_open() argument
338 return event_trigger_regex_open(inode, filp); in event_trigger_open()
342 event_trigger_release(struct inode *inode, struct file *file) in event_trigger_release() argument
344 return event_trigger_regex_release(inode, file); in event_trigger_release()
/kernel/irq/
Dproc.c191 static int irq_affinity_proc_open(struct inode *inode, struct file *file) in irq_affinity_proc_open() argument
193 return single_open(file, irq_affinity_proc_show, pde_data(inode)); in irq_affinity_proc_open()
196 static int irq_affinity_list_proc_open(struct inode *inode, struct file *file) in irq_affinity_list_proc_open() argument
198 return single_open(file, irq_affinity_list_proc_show, pde_data(inode)); in irq_affinity_list_proc_open()
266 static int default_affinity_open(struct inode *inode, struct file *file) in default_affinity_open() argument
268 return single_open(file, default_affinity_show, pde_data(inode)); in default_affinity_open()
/kernel/sched/
Ddebug.c132 struct inode *inode; in sched_feat_write() local
144 inode = file_inode(filp); in sched_feat_write()
146 inode_lock(inode); in sched_feat_write()
148 inode_unlock(inode); in sched_feat_write()
158 static int sched_feat_open(struct inode *inode, struct file *filp) in sched_feat_open() argument
206 static int sched_scaling_open(struct inode *inode, struct file *filp) in sched_scaling_open() argument
268 static int sched_dynamic_open(struct inode *inode, struct file *filp) in sched_dynamic_open() argument
326 static int sched_debug_open(struct inode *inode, struct file *filp) in sched_debug_open() argument
401 static int sd_flags_open(struct inode *inode, struct file *file) in sd_flags_open() argument
403 return single_open(file, sd_flags_show, inode->i_private); in sd_flags_open()
Dpsi.c1526 static int psi_io_open(struct inode *inode, struct file *file) in psi_io_open() argument
1531 static int psi_memory_open(struct inode *inode, struct file *file) in psi_memory_open() argument
1536 static int psi_cpu_open(struct inode *inode, struct file *file) in psi_cpu_open() argument
1609 static int psi_fop_release(struct inode *inode, struct file *file) in psi_fop_release() argument
1614 return single_release(inode, file); in psi_fop_release()
1650 static int psi_irq_open(struct inode *inode, struct file *file) in psi_irq_open() argument
/kernel/futex/
Dcore.c172 static u64 get_inode_sequence_number(struct inode *inode) in get_inode_sequence_number() argument
178 old = atomic64_read(&inode->i_sequence); in get_inode_sequence_number()
187 old = atomic64_cmpxchg_relaxed(&inode->i_sequence, 0, new); in get_inode_sequence_number()
367 struct inode *inode; in get_futex_key() local
389 inode = READ_ONCE(mapping->host); in get_futex_key()
390 if (!inode) { in get_futex_key()
398 key->shared.i_seq = get_inode_sequence_number(inode); in get_futex_key()
/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.c94 static int udelay_test_open(struct inode *inode, struct file *file) in udelay_test_open() argument
96 return single_open(file, udelay_test_show, inode->i_private); in udelay_test_open()
/kernel/trace/rv/
Drv_reactors.c124 static int available_reactors_open(struct inode *inode, struct file *file) in available_reactors_open() argument
247 static int monitor_reactors_open(struct inode *inode, struct file *file) in monitor_reactors_open() argument
249 struct rv_monitor_def *mdef = inode->i_private; in monitor_reactors_open()
/kernel/power/
Duser.c47 static int snapshot_open(struct inode *inode, struct file *filp) in snapshot_open() argument
68 nonseekable_open(inode, filp); in snapshot_open()
107 static int snapshot_release(struct inode *inode, struct file *filp) in snapshot_release() argument

123