/kernel/ |
D | sysctl.c | 212 .mode = table->mode, in bpf_stats_handler() 1725 .mode = table->mode, in proc_do_static_key() 1751 .mode = 0644, 1759 .mode = 0644, 1768 .mode = 0644, 1777 .mode = 0644, 1787 .mode = 0644, 1796 .mode = 0644, 1803 .mode = 0644, 1811 .mode = 0644, [all …]
|
D | kcov.c | 56 enum kcov_mode mode; member 156 unsigned int mode; in check_kcov_mode() local 165 mode = READ_ONCE(t->kcov_mode); in check_kcov_mode() 174 return mode == needed_mode; in check_kcov_mode() 326 unsigned int size, void *area, enum kcov_mode mode, in kcov_start() argument 337 WRITE_ONCE(t->kcov_mode, mode); in kcov_start() 365 kcov->mode = KCOV_MODE_INIT; in kcov_reset() 471 if (kcov->mode != KCOV_MODE_INIT || vma->vm_pgoff != 0 || in kcov_mmap() 500 kcov->mode = KCOV_MODE_DISABLED; in kcov_open() 565 int mode, i; in kcov_ioctl_locked() local [all …]
|
D | ucount.c | 39 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, \
|
D | utsname_sysctl.c | 80 .mode = 0444, 87 .mode = 0444, 94 .mode = 0444, 101 .mode = 0644, 109 .mode = 0644, 119 .mode = 0555,
|
D | sysctl-test.c | 30 .mode = 0644, in sysctl_test_api_dointvec_null_tbl_data() 80 .mode = 0644, in sysctl_test_api_dointvec_table_maxlen_unset() 123 .mode = 0644, in sysctl_test_api_dointvec_table_len_is_zero() 157 .mode = 0644, in sysctl_test_api_dointvec_table_read_but_position_set() 192 .mode = 0644, in sysctl_test_dointvec_read_happy_single_positive() 223 .mode = 0644, in sysctl_test_dointvec_read_happy_single_negative() 252 .mode = 0644, in sysctl_test_dointvec_write_happy_single_positive() 282 .mode = 0644, in sysctl_test_dointvec_write_happy_single_negative() 314 .mode = 0644, in sysctl_test_api_dointvec_write_single_less_int_min() 352 .mode = 0644, in sysctl_test_api_dointvec_write_single_greater_int_max()
|
D | reboot.c | 527 enum reboot_mode *mode; in reboot_setup() local 537 mode = &panic_reboot_mode; in reboot_setup() 540 mode = &reboot_mode; in reboot_setup() 545 *mode = REBOOT_WARM; in reboot_setup() 549 *mode = REBOOT_COLD; in reboot_setup() 553 *mode = REBOOT_HARD; in reboot_setup() 563 *mode = REBOOT_SOFT; in reboot_setup() 574 *mode = REBOOT_GPIO; in reboot_setup()
|
D | seccomp.c | 429 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode() 443 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode() 494 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads() 495 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads() 617 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads() 1032 current->seccomp.mode = SECCOMP_MODE_DEAD; in __secure_computing_strict() 1040 int mode = current->seccomp.mode; in secure_computing_strict() local 1046 if (mode == SECCOMP_MODE_DISABLED) in secure_computing_strict() 1048 else if (mode == SECCOMP_MODE_STRICT) in secure_computing_strict() 1261 current->seccomp.mode = SECCOMP_MODE_DEAD; in __seccomp_filter() [all …]
|
D | ptrace.c | 283 static bool ptrace_has_cap(struct user_namespace *ns, unsigned int mode) in ptrace_has_cap() argument 285 if (mode & PTRACE_MODE_NOAUDIT) in ptrace_has_cap() 291 static int __ptrace_may_access(struct task_struct *task, unsigned int mode) in __ptrace_may_access() argument 298 if (!(mode & PTRACE_MODE_FSCREDS) == !(mode & PTRACE_MODE_REALCREDS)) { in __ptrace_may_access() 316 if (mode & PTRACE_MODE_FSCREDS) { in __ptrace_may_access() 339 if (ptrace_has_cap(tcred->user_ns, mode)) in __ptrace_may_access() 358 !ptrace_has_cap(mm->user_ns, mode))) in __ptrace_may_access() 361 return security_ptrace_access_check(task, mode); in __ptrace_may_access() 364 bool ptrace_may_access(struct task_struct *task, unsigned int mode) in ptrace_may_access() argument 368 err = __ptrace_may_access(task, mode); in ptrace_may_access()
|
D | audit.h | 76 umode_t mode; member 153 umode_t mode; member 177 umode_t mode; member
|
D | auditsc.c | 208 umode_t mode = (umode_t)val; in audit_match_filetype() local 215 ((n->mode & S_IFMT) == mode)) in audit_match_filetype() 1287 context->ipc.mode); in show_special() 1317 context->mq_open.oflag, context->mq_open.mode, in show_special() 1438 n->mode, in audit_log_name() 2020 name->mode = inode->i_mode; in audit_copy_inode() 2289 void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in __audit_mq_open() argument 2299 context->mq_open.mode = mode; in __audit_mq_open() 2374 context->ipc.mode = ipcp->mode; in __audit_ipc_obj() 2389 void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in __audit_ipc_set_perm() argument [all …]
|
D | Kconfig.preempt | 32 is in kernel mode executing a system call. This allows 48 even if it is in kernel mode executing a system call and would
|
D | kheaders.c | 44 .mode = 0444,
|
/kernel/sched/ |
D | wait_bit.c | 21 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 …]
|
D | wait.c | 67 static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common() argument 94 ret = curr->func(curr, mode, wake_flags, key); in __wake_up_common() 111 static void __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common_lock() argument 124 nr_exclusive = __wake_up_common(wq_head, mode, nr_exclusive, in __wake_up_common_lock() 140 void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up() argument 143 __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); in __wake_up() 150 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) in __wake_up_locked() argument 152 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); in __wake_up_locked() 156 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) in __wake_up_locked_key() argument 158 __wake_up_common(wq_head, mode, 1, 0, key, NULL); in __wake_up_locked_key() [all …]
|
D | debug.c | 193 .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() 340 entry->mode = 0555; in sd_alloc_ctl_cpu_table() 403 e->mode = 0555; in register_sched_domain_sysctl()
|
/kernel/time/ |
D | hrtimer.c | 418 enum hrtimer_mode mode) in debug_hrtimer_activate() argument 429 enum hrtimer_mode mode); 432 enum hrtimer_mode mode) in hrtimer_init_on_stack() argument 435 __hrtimer_init(timer, clock_id, mode); in hrtimer_init_on_stack() 440 clockid_t clock_id, enum hrtimer_mode mode); 443 clockid_t clock_id, enum hrtimer_mode mode) in hrtimer_init_sleeper_on_stack() argument 446 __hrtimer_init_sleeper(sl, clock_id, mode); in hrtimer_init_sleeper_on_stack() 460 enum hrtimer_mode mode) { } in debug_hrtimer_activate() argument 466 enum hrtimer_mode mode) in debug_init() argument 469 trace_hrtimer_init(timer, clockid, mode); in debug_init() [all …]
|
D | tick-broadcast.c | 93 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT && in tick_check_broadcast_device() 264 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_device_uses_broadcast() 286 switch (tick_broadcast_device.mode) { in tick_device_uses_broadcast() 437 void tick_broadcast_control(enum tick_broadcast_mode mode) in tick_broadcast_control() argument 462 switch (mode) { in tick_broadcast_control() 478 tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control() 488 if (tick_broadcast_device.mode == in tick_broadcast_control() 500 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control() 527 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) { in tick_shutdown_broadcast() 572 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT) in tick_resume_check_broadcast() [all …]
|
D | tick-common.c | 244 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device() 270 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device() 434 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown() 476 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_resume_local()
|
D | tick-oneshot.c | 94 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()
|
/kernel/bpf/ |
D | inode.c | 103 umode_t mode) in bpf_get_inode() argument 107 switch (mode & S_IFMT) { in bpf_get_inode() 125 inode_init_owner(inode, dir, mode); in bpf_get_inode() 155 static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in bpf_mkdir() argument 159 inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); in bpf_mkdir() 330 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument 335 struct inode *inode = bpf_get_inode(dir->i_sb, dir, mode); in bpf_mkobj_ops() 347 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument 349 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog() 353 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument [all …]
|
D | sysfs_btf.c | 25 .attr = { .name = "vmlinux", .mode = 0444, },
|
/kernel/power/ |
D | user.c | 34 int mode; member 74 data->mode = O_RDONLY; in snapshot_open() 85 data->mode = O_WRONLY; in snapshot_open() 123 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release() 302 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl() 317 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
|
D | hibernate.c | 1101 int mode = HIBERNATION_INVALID; in disk_store() local 1113 mode = i; in disk_store() 1117 if (mode != HIBERNATION_INVALID) { in disk_store() 1118 switch (mode) { in disk_store() 1125 hibernation_mode = mode; in disk_store() 1129 hibernation_mode = mode; in disk_store() 1138 hibernation_modes[mode]); in disk_store()
|
D | power.h | 82 .mode = 0644, \ 92 .mode = S_IRUGO, \
|
/kernel/bpf/preload/ |
D | Kconfig | 21 tristate "bpf_preload kernel module with user mode driver" 26 This builds bpf_preload kernel module with embedded user mode driver.
|