/kernel/ |
D | sysctl.c | 203 .mode = table->mode, in bpf_stats_handler() 1756 .mode = table->mode, in proc_do_static_key() 1782 .mode = 0644, 1790 .mode = 0644, 1801 .mode = 0644, 1812 .mode = 0644, 1822 .mode = 0644, 1831 .mode = 0644, 1840 .mode = 0644, 1847 .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 | 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 | ucount.c | 45 int mode; in set_permissions() local 49 mode = (table->mode & S_IRWXU) >> 6; in set_permissions() 52 mode = table->mode & S_IROTH; in set_permissions() 53 return (mode << 6) | (mode << 3) | mode; in set_permissions() 68 .mode = 0644, \
|
D | reboot.c | 606 enum reboot_mode *mode; in reboot_setup() local 616 mode = &panic_reboot_mode; in reboot_setup() 619 mode = &reboot_mode; in reboot_setup() 624 *mode = REBOOT_WARM; in reboot_setup() 628 *mode = REBOOT_COLD; in reboot_setup() 632 *mode = REBOOT_HARD; in reboot_setup() 653 *mode = REBOOT_SOFT; in reboot_setup() 657 *mode = REBOOT_GPIO; in reboot_setup() 749 static struct kobj_attribute reboot_mode_attr = __ATTR_RW(mode);
|
D | seccomp.c | 434 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode() 448 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode() 499 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads() 500 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads() 625 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads() 1016 current->seccomp.mode = SECCOMP_MODE_DEAD; in __secure_computing_strict() 1024 int mode = current->seccomp.mode; in secure_computing_strict() local 1030 if (mode == SECCOMP_MODE_DISABLED) in secure_computing_strict() 1032 else if (mode == SECCOMP_MODE_STRICT) in secure_computing_strict() 1268 current->seccomp.mode = SECCOMP_MODE_DEAD; in __seccomp_filter() [all …]
|
D | ptrace.c | 284 static bool ptrace_has_cap(struct user_namespace *ns, unsigned int mode) in ptrace_has_cap() argument 286 if (mode & PTRACE_MODE_NOAUDIT) in ptrace_has_cap() 292 static int __ptrace_may_access(struct task_struct *task, unsigned int mode) in __ptrace_may_access() argument 299 if (!(mode & PTRACE_MODE_FSCREDS) == !(mode & PTRACE_MODE_REALCREDS)) { in __ptrace_may_access() 317 if (mode & PTRACE_MODE_FSCREDS) { in __ptrace_may_access() 340 if (ptrace_has_cap(tcred->user_ns, mode)) in __ptrace_may_access() 359 !ptrace_has_cap(mm->user_ns, mode))) in __ptrace_may_access() 362 return security_ptrace_access_check(task, mode); in __ptrace_may_access() 365 bool ptrace_may_access(struct task_struct *task, unsigned int mode) in ptrace_may_access() argument 369 err = __ptrace_may_access(task, mode); in ptrace_may_access()
|
D | audit.h | 79 umode_t mode; member 156 umode_t mode; member 180 umode_t mode; member
|
D | auditsc.c | 207 umode_t mode = (umode_t)val; in audit_match_filetype() local 214 ((n->mode & S_IFMT) == mode)) in audit_match_filetype() 1293 context->ipc.mode); in show_special() 1324 context->mq_open.oflag, context->mq_open.mode, in show_special() 1450 n->mode, in audit_log_name() 2017 name->mode = inode->i_mode; in audit_copy_inode() 2286 void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) in __audit_mq_open() argument 2296 context->mq_open.mode = mode; in __audit_mq_open() 2373 context->ipc.mode = ipcp->mode; in __audit_ipc_obj() 2388 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 | 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 | 82 static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common() argument 109 ret = curr->func(curr, mode, wake_flags, key); in __wake_up_common() 126 static void __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common_lock() argument 139 nr_exclusive = __wake_up_common(wq_head, mode, nr_exclusive, in __wake_up_common_lock() 155 void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up() argument 158 __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); in __wake_up() 165 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) in __wake_up_locked() argument 167 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); in __wake_up_locked() 171 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) in __wake_up_locked_key() argument 173 __wake_up_common(wq_head, mode, 1, 0, key, NULL); in __wake_up_locked_key() [all …]
|
D | debug.c | 228 int mode; in sched_dynamic_write() local 237 mode = sched_dynamic_mode(strstrip(buf)); in sched_dynamic_write() 238 if (mode < 0) in sched_dynamic_write() 239 return mode; in sched_dynamic_write() 241 sched_dynamic_update(mode); in sched_dynamic_write() 379 #define SDM(type, mode, member) \ in register_sd() argument 380 debugfs_create_##type(#member, mode, parent, &sd->member) in register_sd()
|
/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 | 94 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT && in tick_check_broadcast_device() 265 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_device_uses_broadcast() 287 switch (tick_broadcast_device.mode) { in tick_device_uses_broadcast() 438 void tick_broadcast_control(enum tick_broadcast_mode mode) in tick_broadcast_control() argument 463 switch (mode) { in tick_broadcast_control() 479 tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control() 489 if (tick_broadcast_device.mode == in tick_broadcast_control() 501 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) in tick_broadcast_control() 528 if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) { in tick_shutdown_broadcast() 573 if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT) in tick_resume_check_broadcast() [all …]
|
D | tick-common.c | 246 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device() 272 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device() 427 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown() 469 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(&init_user_ns, inode, dir, mode); in bpf_get_inode() 156 struct dentry *dentry, umode_t mode) in bpf_mkdir() argument 160 inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); in bpf_mkdir() 331 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument 336 struct inode *inode = bpf_get_inode(dir->i_sb, dir, mode); in bpf_mkobj_ops() 348 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument 350 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog() 354 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument [all …]
|
/kernel/trace/ |
D | trace_hwlat.c | 608 int mode = *pos; in s_mode_start() local 612 if (mode >= MODE_MAX) in s_mode_start() 620 int mode = ++(*pos); in s_mode_next() local 622 if (mode >= MODE_MAX) in s_mode_next() 631 int mode = *pos; in s_mode_show() local 633 if (mode == hwlat_data.thread_mode) in s_mode_show() 634 seq_printf(s, "[%s]", thread_mode_str[mode]); in s_mode_show() 636 seq_printf(s, "%s", thread_mode_str[mode]); in s_mode_show() 638 if (mode < MODE_MAX - 1) /* if mode is any but last */ in s_mode_show() 684 const char *mode; in hwlat_mode_write() local [all …]
|
/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 | 1104 int mode = HIBERNATION_INVALID; in disk_store() local 1116 mode = i; in disk_store() 1120 if (mode != HIBERNATION_INVALID) { in disk_store() 1121 switch (mode) { in disk_store() 1128 hibernation_mode = mode; in disk_store() 1132 hibernation_mode = mode; in disk_store() 1141 hibernation_modes[mode]); in disk_store()
|
D | power.h | 82 .mode = 0644, \ 92 .mode = S_IRUGO, \
|
/kernel/entry/ |
D | syscall_user_dispatch.c | 71 int set_syscall_user_dispatch(unsigned long mode, unsigned long offset, in set_syscall_user_dispatch() argument 74 switch (mode) { in set_syscall_user_dispatch() 102 if (mode == PR_SYS_DISPATCH_ON) in set_syscall_user_dispatch()
|
/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.
|