Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 62) 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 = current_time(inode); in bpf_get_inode()
122 inode->i_mtime = inode->i_atime; in bpf_get_inode()
123 inode->i_ctime = inode->i_atime; in bpf_get_inode()
125 inode_init_owner(&init_user_ns, inode, dir, mode); 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
65 bsb = bpf_inode(inode); in bpf_inode_storage_free()
144 static int inode_storage_delete(struct inode *inode, struct bpf_map *map) in inode_storage_delete() argument
148 sdata = inode_storage_lookup(inode, map, false); in inode_storage_delete()
173 BPF_CALL_5(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_5() argument
187 if (!inode || !inode_storage_ptr(inode)) in BPF_CALL_5()
[all …]
Dbpf_lsm.c138 BPF_CALL_3(bpf_ima_inode_hash, struct inode *, inode, void *, dst, u32, size) in BPF_CALL_3() argument
140 return ima_inode_hash(inode, dst, size); in BPF_CALL_3()
148 BTF_ID_LIST_SINGLE(bpf_ima_inode_hash_btf_ids, struct, inode)
/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.c490 const struct inode *inode) in privileged_wrt_inode_uidgid() argument
492 return kuid_has_mapping(ns, i_uid_into_mnt(mnt_userns, inode)) && in privileged_wrt_inode_uidgid()
493 kgid_has_mapping(ns, i_gid_into_mnt(mnt_userns, inode)); in privileged_wrt_inode_uidgid()
506 const struct inode *inode, int cap) in capable_wrt_inode_uidgid() argument
511 privileged_wrt_inode_uidgid(ns, mnt_userns, inode); in capable_wrt_inode_uidgid()
Dauditsc.c2081 static inline void handle_one(const struct inode *inode) in handle_one() argument
2088 if (likely(!inode->i_fsnotify_marks)) in handle_one()
2094 chunk = audit_tree_lookup(inode); in handle_one()
2128 struct inode *inode = d_backing_inode(d); in handle_path() local
2130 if (inode && unlikely(inode->i_fsnotify_marks)) { in handle_path()
2133 chunk = audit_tree_lookup(inode); in handle_path()
2269 struct inode *inode, unsigned int flags) in audit_copy_inode() argument
2271 name->ino = inode->i_ino; in audit_copy_inode()
2272 name->dev = inode->i_sb->s_dev; in audit_copy_inode()
2273 name->mode = inode->i_mode; in audit_copy_inode()
[all …]
Dcred.c819 int set_create_files_as(struct cred *new, struct inode *inode) in set_create_files_as() argument
821 if (!uid_valid(inode->i_uid) || !gid_valid(inode->i_gid)) in set_create_files_as()
823 new->fsuid = inode->i_uid; in set_create_files_as()
824 new->fsgid = inode->i_gid; in set_create_files_as()
825 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
345 file_inode(vma->vm_file) == uprobe->inode && in valid_ref_ctr_vma()
409 d > 0 ? "increment" : "decrement", uprobe->inode->i_ino, in update_ref_ctr_warn()
615 int uprobe_cmp(const struct inode *l_inode, const loff_t l_offset, in uprobe_cmp()
618 if (l_inode < r->inode) in uprobe_cmp()
621 if (l_inode > r->inode) in uprobe_cmp()
637 struct inode *inode; member
644 return uprobe_cmp(a->inode, a->offset, __node_2_uprobe(b)); in __uprobe_cmp_key()
650 return uprobe_cmp(u->inode, u->offset, __node_2_uprobe(b)); in __uprobe_cmp()
653 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe() argument
[all …]
/kernel/trace/
Dtrace.c4720 static inline int tracing_get_cpu(struct inode *inode) in tracing_get_cpu() argument
4722 if (inode->i_cdev) /* See trace_create_cpu_file() */ in tracing_get_cpu()
4723 return (long)inode->i_cdev - 1; in tracing_get_cpu()
4735 __tracing_open(struct inode *inode, struct file *file, bool snapshot) in __tracing_open() argument
4737 struct trace_array *tr = inode->i_private; in __tracing_open()
4800 iter->cpu_file = tracing_get_cpu(inode); in __tracing_open()
4853 seq_release_private(inode, file); in __tracing_open()
4857 int tracing_open_generic(struct inode *inode, struct file *filp) in tracing_open_generic() argument
4865 filp->private_data = inode->i_private; in tracing_open_generic()
4878 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.c1643 static int trace_format_open(struct inode *inode, struct file *file) in trace_format_open() argument
1740 static int subsystem_open(struct inode *inode, struct file *filp) in subsystem_open() argument
1755 if (iter_dir == inode->i_private) { in subsystem_open()
1780 ret = tracing_open_generic(inode, filp); in subsystem_open()
1789 static int system_tr_open(struct inode *inode, struct file *filp) in system_tr_open() argument
1792 struct trace_array *tr = inode->i_private; in system_tr_open()
1800 ret = tracing_open_generic_tr(inode, filp); in system_tr_open()
1811 static int subsystem_release(struct inode *inode, struct file *file) in subsystem_release() argument
2038 static int ftrace_event_avail_open(struct inode *inode, struct file *file);
2039 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
416 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
479 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
784 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
839 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1063 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1066 ret = uprobe_register_refctr(tu->inode, tu->offset, in trace_uprobe_enable()
1069 ret = uprobe_register(tu->inode, tu->offset, &tu->consumer); in trace_uprobe_enable()
1072 tu->inode = NULL; in trace_uprobe_enable()
1085 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()
Dtrace_events_trigger.c204 static int event_trigger_regex_open(struct inode *inode, struct file *file) in event_trigger_regex_open() argument
313 static int event_trigger_regex_release(struct inode *inode, struct file *file) in event_trigger_regex_release() argument
318 seq_release(inode, file); in event_trigger_regex_release()
333 event_trigger_open(struct inode *inode, struct file *filp) in event_trigger_open() argument
336 return event_trigger_regex_open(inode, filp); in event_trigger_open()
340 event_trigger_release(struct inode *inode, struct file *file) in event_trigger_release() argument
342 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
287 static int sched_debug_open(struct inode *inode, struct file *filp) in sched_debug_open() argument
366 static int sd_flags_open(struct inode *inode, struct file *file) in sd_flags_open() argument
368 return single_open(file, sd_flags_show, inode->i_private); in sd_flags_open()
Dpsi.c1413 static int psi_io_open(struct inode *inode, struct file *file) in psi_io_open() argument
1418 static int psi_memory_open(struct inode *inode, struct file *file) in psi_memory_open() argument
1423 static int psi_cpu_open(struct inode *inode, struct file *file) in psi_cpu_open() argument
1496 static int psi_fop_release(struct inode *inode, struct file *file) in psi_fop_release() argument
1501 return single_release(inode, file); in psi_fop_release()
1537 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