Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 51) sorted by relevance

123

/kernel/
Dsysctl.c278 .mode = 0555,
283 .mode = 0555,
288 .mode = 0555,
293 .mode = 0555,
298 .mode = 0555,
325 .mode = 0644,
333 .mode = 0644,
342 .mode = 0644,
351 .mode = 0644,
361 .mode = 0644,
[all …]
Dkcov.c56 enum kcov_mode mode; member
147 unsigned int mode; in check_kcov_mode() local
155 mode = READ_ONCE(t->kcov_mode); in check_kcov_mode()
164 return mode == needed_mode; in check_kcov_mode()
316 void *area, enum kcov_mode mode, int sequence) in kcov_start() argument
324 WRITE_ONCE(t->kcov_mode, mode); in kcov_start()
353 kcov->mode = KCOV_MODE_INIT; in kcov_reset()
456 if (kcov->mode != KCOV_MODE_INIT || vma->vm_pgoff != 0 || in kcov_mmap()
485 kcov->mode = KCOV_MODE_DISABLED; in kcov_open()
550 int mode, i; in kcov_ioctl_locked() local
[all …]
Ducount.c39 int mode; in set_permissions() local
43 mode = (table->mode & S_IRWXU) >> 6; in set_permissions()
46 mode = table->mode & S_IROTH; in set_permissions()
47 return (mode << 6) | (mode << 3) | mode; in set_permissions()
59 .mode = 0644, \
Dutsname_sysctl.c80 .mode = 0444,
87 .mode = 0444,
94 .mode = 0444,
101 .mode = 0644,
109 .mode = 0644,
119 .mode = 0555,
Dreboot.c526 enum reboot_mode *mode; in reboot_setup() local
536 mode = &panic_reboot_mode; in reboot_setup()
539 mode = &reboot_mode; in reboot_setup()
544 *mode = REBOOT_WARM; in reboot_setup()
548 *mode = REBOOT_COLD; in reboot_setup()
552 *mode = REBOOT_HARD; in reboot_setup()
569 *mode = REBOOT_SOFT; in reboot_setup()
573 *mode = REBOOT_GPIO; in reboot_setup()
Dseccomp.c288 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
302 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
353 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
354 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
418 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads()
709 int mode = current->seccomp.mode; in secure_computing_strict() local
715 if (mode == SECCOMP_MODE_DISABLED) in secure_computing_strict()
717 else if (mode == SECCOMP_MODE_STRICT) in secure_computing_strict()
922 int mode = current->seccomp.mode; in __secure_computing() local
932 switch (mode) { in __secure_computing()
[all …]
Dptrace.c268 unsigned int mode) in ptrace_has_cap() argument
272 if (mode & PTRACE_MODE_NOAUDIT) in ptrace_has_cap()
281 static int __ptrace_may_access(struct task_struct *task, unsigned int mode) in __ptrace_may_access() argument
288 if (!(mode & PTRACE_MODE_FSCREDS) == !(mode & PTRACE_MODE_REALCREDS)) { in __ptrace_may_access()
306 if (mode & PTRACE_MODE_FSCREDS) { in __ptrace_may_access()
329 if (ptrace_has_cap(cred, tcred->user_ns, mode)) in __ptrace_may_access()
348 !ptrace_has_cap(cred, mm->user_ns, mode))) in __ptrace_may_access()
351 return security_ptrace_access_check(task, mode); in __ptrace_may_access()
354 bool ptrace_may_access(struct task_struct *task, unsigned int mode) in ptrace_may_access() argument
358 err = __ptrace_may_access(task, mode); in ptrace_may_access()
Daudit.h76 umode_t mode; member
153 umode_t mode; member
177 umode_t mode; member
Dauditsc.c179 umode_t mode = (umode_t)val; in audit_match_filetype() local
186 ((n->mode & S_IFMT) == mode)) in audit_match_filetype()
1211 context->ipc.mode); in show_special()
1241 context->mq_open.oflag, context->mq_open.mode, in show_special()
1357 n->mode, in audit_log_name()
1926 name->mode = inode->i_mode; in audit_copy_inode()
2193 void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in __audit_mq_open() argument
2203 context->mq_open.mode = mode; in __audit_mq_open()
2278 context->ipc.mode = ipcp->mode; in __audit_ipc_obj()
2293 void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in __audit_ipc_set_perm() argument
[all …]
DKconfig.preempt32 is in kernel mode executing a system call. This allows
48 even if it is in kernel mode executing a system call and would
Dkheaders.c44 .mode = 0444,
/kernel/sched/
Dwait_bit.c21 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *arg) in wake_bit_function() argument
31 return autoremove_wake_function(wq_entry, mode, sync, key); in wake_bit_function()
42 wait_bit_action_f *action, unsigned mode) in __wait_on_bit() argument
47 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit()
49 ret = (*action)(&wbq_entry->key, mode); in __wait_on_bit()
59 wait_bit_action_f *action, unsigned mode) in out_of_line_wait_on_bit() argument
64 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit()
70 unsigned mode, unsigned long timeout) in out_of_line_wait_on_bit_timeout() argument
77 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit_timeout()
83 wait_bit_action_f *action, unsigned mode) in __wait_on_bit_lock() argument
[all …]
Dwait.c66 static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common() argument
93 ret = curr->func(curr, mode, wake_flags, key); in __wake_up_common()
110 static void __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common_lock() argument
123 nr_exclusive = __wake_up_common(wq_head, mode, nr_exclusive, in __wake_up_common_lock()
139 void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up() argument
142 __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); in __wake_up()
149 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) in __wake_up_locked() argument
151 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); in __wake_up_locked()
155 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) in __wake_up_locked_key() argument
157 __wake_up_common(wq_head, mode, 1, 0, key, NULL); in __wake_up_locked_key()
[all …]
Ddebug.c193 .mode = 0555,
201 .mode = 0555,
225 for (entry = *tablep; entry->mode; entry++) { in sd_free_ctl_entry()
239 umode_t mode, proc_handler *proc_handler) in set_table_entry() argument
244 entry->mode = mode; in set_table_entry()
286 entry->mode = 0555; in sd_alloc_ctl_cpu_table()
349 e->mode = 0555; in register_sched_domain_sysctl()
/kernel/time/
Dhrtimer.c414 enum hrtimer_mode mode) in debug_hrtimer_activate() argument
430 enum hrtimer_mode mode);
433 enum hrtimer_mode mode) in hrtimer_init_on_stack() argument
436 __hrtimer_init(timer, clock_id, mode); in hrtimer_init_on_stack()
441 clockid_t clock_id, enum hrtimer_mode mode);
444 clockid_t clock_id, enum hrtimer_mode mode) in hrtimer_init_sleeper_on_stack() argument
447 __hrtimer_init_sleeper(sl, clock_id, mode); in hrtimer_init_sleeper_on_stack()
461 enum hrtimer_mode mode) { } in debug_hrtimer_activate() argument
467 enum hrtimer_mode mode) in debug_init() argument
470 trace_hrtimer_init(timer, clockid, mode); in debug_init()
[all …]
Dtick-broadcast.c84 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT && in tick_check_broadcast_device()
181 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_device_uses_broadcast()
203 switch (tick_broadcast_device.mode) { in tick_device_uses_broadcast()
356 void tick_broadcast_control(enum tick_broadcast_mode mode) in tick_broadcast_control() argument
381 switch (mode) { in tick_broadcast_control()
397 tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control()
407 if (tick_broadcast_device.mode == in tick_broadcast_control()
419 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control()
446 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) { in tick_shutdown_broadcast()
491 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT) in tick_resume_check_broadcast()
[all …]
Dtick-common.c242 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
268 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device()
432 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown()
474 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_resume_local()
Dtick-oneshot.c94 td->mode = TICKDEV_MODE_ONESHOT; in tick_switch_to_oneshot()
112 ret = __this_cpu_read(tick_cpu_device.mode) == TICKDEV_MODE_ONESHOT; in tick_oneshot_mode_active()
Dtick-sched.h14 enum tick_device_mode mode; member
Dtick-sched.c1212 static inline void tick_nohz_activate(struct tick_sched *ts, int mode) in tick_nohz_activate() argument
1216 ts->nohz_mode = mode; in tick_nohz_activate()
1268 static inline void tick_nohz_activate(struct tick_sched *ts, int mode) { } in tick_nohz_activate() argument
/kernel/bpf/
Dinode.c83 umode_t mode) in bpf_get_inode() argument
87 switch (mode & S_IFMT) { in bpf_get_inode()
105 inode_init_owner(inode, dir, mode); in bpf_get_inode()
133 static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in bpf_mkdir() argument
137 inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); in bpf_mkdir()
307 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument
312 struct inode *inode = bpf_get_inode(dir->i_sb, dir, mode); in bpf_mkobj_ops()
324 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument
326 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog()
330 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument
[all …]
Dsysfs_btf.c25 .attr = { .name = "vmlinux", .mode = 0444, },
/kernel/power/
Duser.c35 int mode; member
72 data->mode = O_RDONLY; in snapshot_open()
85 data->mode = O_WRONLY; in snapshot_open()
125 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release()
253 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
268 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
Dhibernate.c999 int mode = HIBERNATION_INVALID; in disk_store() local
1011 mode = i; in disk_store()
1015 if (mode != HIBERNATION_INVALID) { in disk_store()
1016 switch (mode) { in disk_store()
1023 hibernation_mode = mode; in disk_store()
1027 hibernation_mode = mode; in disk_store()
1036 hibernation_modes[mode]); in disk_store()
Dpower.h82 .mode = 0644, \
92 .mode = S_IRUGO, \

123