Home
last modified time | relevance | path

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

1234

/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.c81 static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common() argument
108 ret = curr->func(curr, mode, wake_flags, key); in __wake_up_common()
125 static int __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up_common_lock() argument
139 remaining = __wake_up_common(wq_head, mode, remaining, in __wake_up_common_lock()
158 int __wake_up(struct wait_queue_head *wq_head, unsigned int mode, in __wake_up() argument
161 return __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); in __wake_up()
168 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) in __wake_up_locked() argument
170 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); in __wake_up_locked()
174 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) in __wake_up_locked_key() argument
176 __wake_up_common(wq_head, mode, 1, 0, key, NULL); in __wake_up_locked_key()
[all …]
Ddebug.c227 int mode; in sched_dynamic_write() local
236 mode = sched_dynamic_mode(strstrip(buf)); in sched_dynamic_write()
237 if (mode < 0) in sched_dynamic_write()
238 return mode; in sched_dynamic_write()
240 sched_dynamic_update(mode); in sched_dynamic_write()
380 #define SDM(type, mode, member) \ in register_sd() argument
381 debugfs_create_##type(#member, mode, parent, &sd->member) in register_sd()
/kernel/
Dsysctl.c1614 .mode = table->mode, in proc_do_static_key()
1641 .mode = 0644,
1650 .mode = 0644,
1659 .mode = 0644,
1666 .mode = 0644,
1673 .mode = 0644,
1683 .mode = 0644,
1691 .mode = 0644,
1698 .mode = 0644,
1705 .mode = 0644,
[all …]
Dkcov.c57 enum kcov_mode mode; member
166 unsigned int mode; in check_kcov_mode() local
175 mode = READ_ONCE(t->kcov_mode); in check_kcov_mode()
184 return mode == needed_mode; in check_kcov_mode()
346 unsigned int size, void *area, enum kcov_mode mode, in kcov_start() argument
357 WRITE_ONCE(t->kcov_mode, mode); in kcov_start()
385 kcov->mode = KCOV_MODE_INIT; in kcov_reset()
514 kcov->mode = KCOV_MODE_DISABLED; in kcov_open()
579 int mode, i; in kcov_ioctl_locked() local
592 if (kcov->mode != KCOV_MODE_INIT || !kcov->area) in kcov_ioctl_locked()
[all …]
Dreboot.c56 enum sys_off_mode mode; member
319 unsigned long mode, void *cmd) in sys_off_notify() argument
326 data.mode = mode; in sys_off_notify()
391 register_sys_off_handler(enum sys_off_mode mode, in register_sys_off_handler() argument
403 switch (mode) { in register_sys_off_handler()
431 handler->mode = mode; in register_sys_off_handler()
505 enum sys_off_mode mode, in devm_register_sys_off_handler() argument
512 handler = register_sys_off_handler(mode, priority, callback, cb_data); in devm_register_sys_off_handler()
994 enum reboot_mode *mode; in reboot_setup() local
1004 mode = &panic_reboot_mode; in reboot_setup()
[all …]
Dutsname_sysctl.c83 .mode = 0444,
90 .mode = 0444,
97 .mode = 0444,
104 .mode = 0444,
111 .mode = 0644,
119 .mode = 0644,
129 .mode = 0555,
Dsysctl-test.c27 .mode = 0644, in sysctl_test_api_dointvec_null_tbl_data()
77 .mode = 0644, in sysctl_test_api_dointvec_table_maxlen_unset()
120 .mode = 0644, in sysctl_test_api_dointvec_table_len_is_zero()
154 .mode = 0644, in sysctl_test_api_dointvec_table_read_but_position_set()
189 .mode = 0644, in sysctl_test_dointvec_read_happy_single_positive()
220 .mode = 0644, in sysctl_test_dointvec_read_happy_single_negative()
249 .mode = 0644, in sysctl_test_dointvec_write_happy_single_positive()
279 .mode = 0644, in sysctl_test_dointvec_write_happy_single_negative()
311 .mode = 0644, in sysctl_test_api_dointvec_write_single_less_int_min()
349 .mode = 0644, in sysctl_test_api_dointvec_write_single_greater_int_max()
Ducount.c45 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, \
Dhung_task.c274 .mode = 0644,
284 .mode = 0644,
293 .mode = 0644,
301 .mode = 0644,
309 .mode = 0644,
317 .mode = 0644,
Dwatchdog.c772 .mode = 0644,
781 .mode = 0644,
790 .mode = NMI_WATCHDOG_SYSCTL_PERM,
799 .mode = 0644,
807 .mode = 0644,
816 .mode = 0644,
826 .mode = 0644,
838 .mode = 0644,
848 .mode = 0644,
Dseccomp.c436 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
450 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
501 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
502 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
627 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads()
1022 current->seccomp.mode = SECCOMP_MODE_DEAD; in __secure_computing_strict()
1030 int mode = current->seccomp.mode; in secure_computing_strict() local
1036 if (mode == SECCOMP_MODE_DISABLED) in secure_computing_strict()
1038 else if (mode == SECCOMP_MODE_STRICT) in secure_computing_strict()
1294 current->seccomp.mode = SECCOMP_MODE_DEAD; in __seccomp_filter()
[all …]
Dptrace.c278 static bool ptrace_has_cap(struct user_namespace *ns, unsigned int mode) in ptrace_has_cap() argument
280 if (mode & PTRACE_MODE_NOAUDIT) in ptrace_has_cap()
286 static int __ptrace_may_access(struct task_struct *task, unsigned int mode) in __ptrace_may_access() argument
293 if (!(mode & PTRACE_MODE_FSCREDS) == !(mode & PTRACE_MODE_REALCREDS)) { in __ptrace_may_access()
311 if (mode & PTRACE_MODE_FSCREDS) { in __ptrace_may_access()
334 if (ptrace_has_cap(tcred->user_ns, mode)) in __ptrace_may_access()
353 !ptrace_has_cap(mm->user_ns, mode))) in __ptrace_may_access()
356 return security_ptrace_access_check(task, mode); in __ptrace_may_access()
359 bool ptrace_may_access(struct task_struct *task, unsigned int mode) in ptrace_may_access() argument
363 err = __ptrace_may_access(task, mode); in ptrace_may_access()
Daudit.h80 umode_t mode; member
162 umode_t mode; member
186 umode_t mode; member
/kernel/time/
Dhrtimer.c418 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 …]
Dtick-broadcast.c94 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 …]
Dtick-common.c246 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()
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()
/kernel/bpf/
Dinode.c103 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/printk/
Dsysctl.c28 .mode = 0644,
35 .mode = 0644,
42 .mode = 0644,
49 .mode = 0644,
58 .mode = 0644,
65 .mode = 0644,
74 .mode = 0644,
/kernel/trace/
Dtrace_hwlat.c608 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/
Dhibernate.c691 fmode_t mode = FMODE_READ; in load_image_and_restore() local
694 mode |= FMODE_EXCL; in load_image_and_restore()
701 swsusp_close(mode); in load_image_and_restore()
706 swsusp_close(mode); in load_image_and_restore()
1118 int mode = HIBERNATION_INVALID; in disk_store() local
1135 mode = i; in disk_store()
1139 if (mode != HIBERNATION_INVALID) { in disk_store()
1140 switch (mode) { in disk_store()
1147 hibernation_mode = mode; in disk_store()
1151 hibernation_mode = mode; in disk_store()
[all …]
Duser.c34 int mode; member
75 data->mode = O_RDONLY; in snapshot_open()
86 data->mode = O_WRONLY; in snapshot_open()
125 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release()
306 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
321 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
Dpower.h85 .mode = 0644, \
95 .mode = S_IRUGO, \
/kernel/entry/
Dsyscall_user_dispatch.c71 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()

1234