/kernel/time/ |
H A D | tick-broadcast-hrtimer.c | 21 static void bc_set_mode(enum clock_event_mode mode, argument 24 switch (mode) {
|
H A D | clockevents.c | 98 * clockevents_set_mode - set the operating mode of a clock event device 100 * @mode: new mode 105 enum clock_event_mode mode) 107 if (dev->mode != mode) { 108 dev->set_mode(mode, dev); 109 dev->mode = mode; 115 if (mode 104 clockevents_set_mode(struct clock_event_device *dev, enum clock_event_mode mode) argument [all...] |
H A D | posix-timers.c | 829 enum hrtimer_mode mode; local 851 mode = flags & TIMER_ABSTIME ? HRTIMER_MODE_ABS : HRTIMER_MODE_REL; 852 hrtimer_init(&timr->it.real.timer, timr->it_clock, mode); 863 if (mode == HRTIMER_MODE_REL) { 869 hrtimer_start_expires(timer, mode);
|
H A D | hrtimer.c | 402 enum hrtimer_mode mode); 405 enum hrtimer_mode mode) 408 __hrtimer_init(timer, clock_id, mode); 425 enum hrtimer_mode mode) 428 trace_hrtimer_init(timer, clockid, mode); 452 * Enable / Disable high resolution mode 468 * hrtimer_high_res_enabled - query, if the highres mode is enabled 476 * Is the high resolution mode active ? 644 * Switch to high resolution mode 660 "mode o 404 hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id, enum hrtimer_mode mode) argument 424 debug_init(struct hrtimer *timer, clockid_t clockid, enum hrtimer_mode mode) argument 919 __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, unsigned long delta_ns, const enum hrtimer_mode mode, int wakeup) argument 1006 hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, unsigned long delta_ns, const enum hrtimer_mode mode) argument 1025 hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode) argument 1139 __hrtimer_init(struct hrtimer *timer, clockid_t clock_id, enum hrtimer_mode mode) argument 1169 hrtimer_init(struct hrtimer *timer, clockid_t clock_id, enum hrtimer_mode mode) argument 1499 do_nanosleep(struct hrtimer_sleeper *t, enum hrtimer_mode mode) argument 1565 hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp, const enum hrtimer_mode mode, const clockid_t clockid) argument 1760 schedule_hrtimeout_range_clock(ktime_t *expires, unsigned long delta, const enum hrtimer_mode mode, int clock) argument 1830 schedule_hrtimeout_range(ktime_t *expires, unsigned long delta, const enum hrtimer_mode mode) argument 1860 schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode) argument [all...] |
/kernel/power/ |
H A D | user.c | 38 int mode; member in struct:snapshot_data 75 data->mode = O_RDONLY; 88 data->mode = O_WRONLY; 126 pm_notifier_call_chain(data->mode == O_RDONLY ? 251 if (data->mode != O_RDONLY || !data->frozen || data->ready) { 266 if (data->mode != O_WRONLY || !data->frozen ||
|
H A D | hibernate.c | 160 * normal mode of operation. 174 * Use the platform driver to switch the machine to the normal mode of 205 * Use the platform driver to switch the system to the normal mode of operation 737 * attempts to recover gracefully and make the kernel return to the normal mode 883 * /sys/power/disk - Control hibernation mode. 891 * hibernation mode to use. Reading from this file causes the available modes 903 * To select a given hibernation mode it is necessary to write the mode's 930 /* not a valid mode, continue with loop */ 949 int mode local [all...] |
H A D | swap.c | 1465 void swsusp_close(fmode_t mode) argument 1472 blkdev_put(hib_resume_bdev, mode);
|
/kernel/sched/ |
H A D | wait.c | 64 static void __wake_up_common(wait_queue_head_t *q, unsigned int mode, argument 72 if (curr->func(curr, mode, wake_flags, key) && 81 * @mode: which threads 88 void __wake_up(wait_queue_head_t *q, unsigned int mode, argument 94 __wake_up_common(q, mode, nr_exclusive, 0, key); 102 void __wake_up_locked(wait_queue_head_t *q, unsigned int mode, int nr) argument 104 __wake_up_common(q, mode, nr, 0, NULL); 108 void __wake_up_locked_key(wait_queue_head_t *q, unsigned int mode, void *key) argument 110 __wake_up_common(q, mode, 1, 0, key); 117 * @mode 131 __wake_up_sync_key(wait_queue_head_t *q, unsigned int mode, int nr_exclusive, void *key) argument 152 __wake_up_sync(wait_queue_head_t *q, unsigned int mode, int nr_exclusive) argument 275 abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, unsigned int mode, void *key) argument 290 autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) argument 300 wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *arg) argument 321 __wait_on_bit(wait_queue_head_t *wq, struct wait_bit_queue *q, wait_bit_action_f *action, unsigned mode) argument 336 out_of_line_wait_on_bit(void *word, int bit, wait_bit_action_f *action, unsigned mode) argument 346 out_of_line_wait_on_bit_timeout( void *word, int bit, wait_bit_action_f *action, unsigned mode, unsigned long timeout) argument 359 __wait_on_bit_lock(wait_queue_head_t *wq, struct wait_bit_queue *q, wait_bit_action_f *action, unsigned mode) argument 379 out_of_line_wait_on_bit_lock(void *word, int bit, wait_bit_action_f *action, unsigned mode) argument 444 wake_atomic_t_function(wait_queue_t *wait, unsigned mode, int sync, void *arg) argument 465 __wait_on_atomic_t(wait_queue_head_t *wq, struct wait_bit_queue *q, int (*action)(atomic_t *), unsigned mode) argument 493 out_of_line_wait_on_atomic_t(atomic_t *p, int (*action)(atomic_t *), unsigned mode) argument [all...] |
H A D | core.c | 1309 * kernel-mode, without any delay. (to get signals handled.) 2875 * we haven't yet exited the RCU idle mode. Do it here manually until 3004 int default_wake_function(wait_queue_t *curr, unsigned mode, int wake_flags, argument 3007 return try_to_wake_up(curr->private, mode, wake_flags); 4986 .mode = 0555, 4994 .mode = 0555, 5014 * procname are dynamically allocated and could fail but the mode 5018 for (entry = *tablep; entry->mode; entry++) { 5035 umode_t mode, proc_handler *proc_handler, 5041 entry->mode 5033 set_table_entry(struct ctl_table *entry, const char *procname, void *data, int maxlen, umode_t mode, proc_handler *proc_handler, bool load_idx) argument [all...] |
/kernel/ |
H A D | seccomp.c | 212 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) 223 task->seccomp.mode = seccomp_mode; 225 * Make sure TIF_SECCOMP cannot be set before the mode (and 252 * either not in the correct seccomp mode or it did not have an ancestral 271 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || 272 (thread->seccomp.mode == SECCOMP_MODE_FILTER && 326 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) { 554 * Secure computing mode 1 allows only read/write/exit/sigreturn. 592 int mode local 689 int mode = current->seccomp.mode; local [all...] |
H A D | softirq.c | 616 * @mode: hrtimer mode (HRTIMER_MODE_ABS/HRTIMER_MODE_REL) 620 clockid_t which_clock, enum hrtimer_mode mode) 622 hrtimer_init(&ttimer->timer, which_clock, mode); 618 tasklet_hrtimer_init(struct tasklet_hrtimer *ttimer, enum hrtimer_restart (*function)(struct hrtimer *), clockid_t which_clock, enum hrtimer_mode mode) argument
|
H A D | exit.c | 767 * because of cgroup mode, must be called before cgroup_exit() 1450 static int child_wait_callback(wait_queue_t *wait, unsigned mode, argument 1463 return default_wake_function(wait, mode, sync, key);
|
H A D | ptrace.c | 210 static int ptrace_has_cap(struct user_namespace *ns, unsigned int mode) argument 212 if (mode & PTRACE_MODE_NOAUDIT) 219 static int __ptrace_may_access(struct task_struct *task, unsigned int mode) argument 244 if (ptrace_has_cap(tcred->user_ns, mode)) 255 !ptrace_has_cap(__task_cred(task)->user_ns, mode)) { 261 return security_ptrace_access_check(task, mode); 264 bool ptrace_may_access(struct task_struct *task, unsigned int mode) argument 268 err = __ptrace_may_access(task, mode);
|
H A D | audit.h | 93 umode_t mode; member in struct:audit_names 170 umode_t mode; member in struct:audit_context::__anon2::__anon4 194 umode_t mode; member in struct:audit_context::__anon2::__anon8
|
H A D | fork.c | 743 struct mm_struct *mm_access(struct task_struct *task, unsigned int mode) argument 754 !ptrace_may_access(task, mode) && 1146 * If the parent gained a seccomp mode after copying thread 1150 if (p->seccomp.mode != SECCOMP_MODE_DISABLED) 1726 /* can not support in nommu mode */
|
H A D | relay.c | 308 umode_t mode, 786 * mode is 'overwrite'. 306 create_buf_file_default_callback(const char *filename, struct dentry *parent, umode_t mode, struct rchan_buf *buf, int *is_global) argument
|
H A D | auditsc.c | 175 umode_t mode = (umode_t)val; local 182 ((n->mode & S_IFMT) == mode)) 1212 audit_log_format(ab, "ouid=%u ogid=%u mode=%#ho", 1215 context->ipc.mode); 1234 "qbytes=%lx ouid=%u ogid=%u mode=%#ho", 1243 "oflag=0x%x mode=%#ho mq_flags=0x%lx mq_maxmsg=%ld " 1245 context->mq_open.oflag, context->mq_open.mode, 2096 * @mode: mode bit 2100 __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) argument 2200 __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) argument [all...] |
H A D | cgroup.c | 981 * cgroup_file_mode - deduce file mode of a control file 984 * returns cft->mode if ->mode is not 0 991 umode_t mode = 0; local 993 if (cft->mode) 994 return cft->mode; 997 mode |= S_IRUGO; 1000 mode |= S_IWUSR; 1002 return mode; 4235 .mode 4585 cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode) argument [all...] |
/kernel/bpf/ |
H A D | verifier.c | 1664 u8 mode = BPF_MODE(insn->code); local 1666 if (mode == BPF_ABS || mode == BPF_IND) { 1669 } else if (mode == BPF_IMM) { 1676 verbose("invalid BPF_LD mode\n");
|
/kernel/trace/ |
H A D | blktrace.c | 402 umode_t mode, 406 return debugfs_create_file(filename, mode, parent, buf, 400 blk_create_buf_file_callback(const char *filename, struct dentry *parent, umode_t mode, struct rchan_buf *buf, int *is_global) argument
|
H A D | trace.c | 4486 * Always select as readable when in blocking mode 5747 /* counter or tsc mode for trace_clock */ 5962 trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent, argument 5965 struct dentry *ret = trace_create_file(name, mode, parent, data, fops); 6130 umode_t mode, 6137 ret = debugfs_create_file(name, mode, parent, data, fops); 6504 static int instance_mkdir (struct inode *inode, struct dentry *dentry, umode_t mode) argument 6793 /* don't look at user memory in panic mode */ 6806 printk(KERN_TRACE "Bad dumping mode, switching to all CPUs dump\n"); 6129 trace_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops) argument
|
/kernel/events/ |
H A D | core.c | 488 * mode SWOUT : schedule out everything 489 * mode SWIN : schedule in based on cgroup for next 491 void perf_cgroup_switch(struct task_struct *task, int mode) argument 526 if (mode & PERF_CGROUP_SWOUT) { 535 if (mode & PERF_CGROUP_SWIN) { 1078 * in cgroup mode, time_enabled represents 2465 * cgroup event are system-wide mode only 2631 * mode). In that case, the risk is high of having a branch stack with 2708 * cgroup event are system-wide mode only 2838 * - context have events in frequency mode (need [all...] |