/Linux-v6.1/drivers/pinctrl/aspeed/ |
D | pinmux-aspeed.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * basis where a given pin can provide a number of different signal types. 14 * The signal active on a pin is described by both a priority level and 18 * change from a high to low priority signal), or even in the same register. 21 * read-only). 23 * SoC Multi-function Pin Expression Examples 24 * ------------------------------------------ 28 * corner. The signal priorities are in decending order from P0 (highest). 30 * D6 is a pin with a single function (beside GPIO); a high priority signal 33 * Ball | Default | P0 Signal | P0 Expression | P1 Signal | P1 Expression | Other [all …]
|
D | pinctrl-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include "pinctrl-aspeed.h" 17 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count() 21 unsigned int group) in aspeed_pinctrl_get_group_name() argument 25 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name() 29 unsigned int group, const unsigned int **pins, in aspeed_pinctrl_get_group_pins() argument 34 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins() 35 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 43 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show() 50 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count() [all …]
|
/Linux-v6.1/drivers/tty/ |
D | tty_jobctrl.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/signal.h> 9 #include <linux/sched/signal.h> 18 return (sigismember(¤t->blocked, sig) || in is_ignored() 19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored() 23 * __tty_check_change - check for POSIX terminal changes 25 * @sig: signal to send 28 * not in the foreground, send a SIGTTOU. If the signal is blocked or 39 if (current->signal->tty != tty) in __tty_check_change() 45 spin_lock_irqsave(&tty->ctrl.lock, flags); in __tty_check_change() [all …]
|
/Linux-v6.1/include/trace/events/ |
D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #define TRACE_SYSTEM signal 8 #include <linux/signal.h> 15 __entry->errno = 0; \ 16 __entry->code = SI_USER; \ 18 __entry->errno = 0; \ 19 __entry->code = SI_KERNEL; \ 21 __entry->errno = info->si_errno; \ 22 __entry->code = info->si_code; \ 37 * signal_generate - called when a signal is generated [all …]
|
/Linux-v6.1/include/linux/sched/ |
D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include <linux/signal.h> 12 #include <linux/posix-timers.h> 17 * Types defining task->signal and task->sighand and APIs using them: 28 * Per-process accounting stats: 60 * struct thread_group_cputimer - thread group interval timer counts 61 * @cputime_atomic: atomic thread group interval timers. 64 * used for thread group CPU timer calculations. 71 sigset_t signal; member 102 /* current thread group signal load-balancing target: */ [all …]
|
D | cputime.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/sched/signal.h> 28 *utime = t->utime; in task_cputime() 29 *stime = t->stime; in task_cputime() 35 return t->gtime; in task_gtime() 44 *utimescaled = t->utimescaled; in task_cputime_scaled() 45 *stimescaled = t->stimescaled; in task_cputime_scaled() 62 * Thread group CPU time accounting. 68 * The following are functions that support scheduler-internal time accounting. 74 * get_running_cputimer - return &tsk->signal->cputimer if cputimers are active [all …]
|
/Linux-v6.1/drivers/counter/ |
D | counter-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include "counter-sysfs.h" 28 * struct counter_attribute - Counter sysfs attribute 30 * @l: node to add Counter attribute to attribute group list 48 * struct counter_attribute_group - container for attribute group 49 * @name: name of the attribute group 62 [COUNTER_FUNCTION_PULSE_DIRECTION] = "pulse-direction", 90 [COUNTER_COUNT_MODE_NON_RECYCLE] = "non-recycle", 91 [COUNTER_COUNT_MODE_MODULO_N] = "modulo-n" 107 switch (a->scope) { in counter_comp_u8_show() [all …]
|
/Linux-v6.1/kernel/ |
D | exit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 #include <linux/signal.h> 44 #include <linux/posix-timers.h> 77 nr_threads--; in __unhash_process() 84 list_del_rcu(&p->tasks); in __unhash_process() 85 list_del_init(&p->sibling); in __unhash_process() 88 list_del_rcu(&p->thread_group); in __unhash_process() 89 list_del_rcu(&p->thread_node); in __unhash_process() 93 * This function expects the tasklist_lock write-locked. 97 struct signal_struct *sig = tsk->signal; in __exit_signal() [all …]
|
D | signal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/kernel/signal.c 7 * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson 9 * 2003-06-02 Jim Houston - Concurrent Computer Corp. 32 #include <linux/signal.h> 45 #include <linux/posix-timers.h> 50 #include <trace/events/signal.h> 60 * SLAB caches for signal bits. 69 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler() 89 if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && in sig_task_ignored() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/gpio/ |
D | gpio.txt | 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 24 and bit-banged data signals: 27 gpio-controller; 28 #gpio-cells = <2>; 32 data-gpios = <&gpio1 12 0>, 44 recommended to use the two-cell approach. 48 include/dt-bindings/gpio/gpio.h whenever possible: [all …]
|
/Linux-v6.1/include/linux/ |
D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 #define SI_EXPANSION_SIZE (sizeof(struct siginfo) - sizeof(struct kernel_siginfo)) 66 unsigned long sig = _sig - 1; in sigaddset() 68 set->sig[0] |= 1UL << sig; in sigaddset() 70 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset() 75 unsigned long sig = _sig - 1; in sigdelset() 77 set->sig[0] &= ~(1UL << sig); in sigdelset() 79 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset() 84 unsigned long sig = _sig - 1; in sigismember() 86 return 1 & (set->sig[0] >> sig); in sigismember() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/ |
D | starfive,jh7100-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/starfive,jh7100-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 Bindings for the JH7100 RISC-V SoC from StarFive Ltd. 15 interesting 2-layered approach to pin muxing best illustrated by the diagram 18 Signal group 0, 1, ... or 6 21 LCD output -----------------| | 22 CMOS Camera interface ------| |--- PAD_GPIO[0] 23 Ethernet PHY interface -----| MUX |--- PAD_GPIO[1] [all …]
|
D | nvidia,tegra20-pinmux.txt | 4 - compatible: "nvidia,tegra20-pinmux" 5 - reg: Should contain the register physical address and length for each of 6 the tri-state, mux, pull-up/down, and pad control register sets. 8 Please refer to pinctrl-bindings.txt in this directory for details of the 14 pin, a group, or a list of pins or groups. This configuration can include the 15 mux function to select on those pin(s)/group(s), and various pin configuration 16 parameters, such as pull-up, tristate, drive strength, etc. 30 Required subnode-properties: 31 - nvidia,pins : An array of strings. Each string contains the name of a pin or 32 group. Valid values for these names are listed below. [all …]
|
D | nvidia,tegra210-pinmux.txt | 4 - compatible: "nvidia,tegra210-pinmux" 5 - reg: Should contain a list of base address and size pairs for: 6 - first entry: The APB_MISC_GP_*_PADCTRL registers (pad control) 7 - second entry: The PINMUX_AUX_* registers (pinmux) 9 Please refer to pinctrl-bindings.txt in this directory for details of the 15 pin, a group, or a list of pins or groups. This configuration can include the 16 mux function to select on those pin(s)/group(s), and various pin configuration 17 parameters, such as pull-up, tristate, drive strength, etc. 31 See the TRM to determine which properties and values apply to each pin/group. 33 include/dt-binding/pinctrl/pinctrl-tegra.h. [all …]
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | vhost.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 /* Userspace interface for in-kernel virtio accelerators. */ 18 #define VHOST_FILE_UNBIND -1 46 /* Specify an eventfd file descriptor to signal on log write. */ 61 * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL). 63 * returns -EBUSY. 74 /* The following ioctls use eventfd file descriptors to signal and poll 79 /* Set eventfd to signal when buffers have beed used */ 81 /* Set eventfd to signal an error */ 99 * used for transmit. Pass fd -1 to unbind from the socket and the transmit [all …]
|
/Linux-v6.1/include/uapi/linux/ |
D | vhost.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 /* Userspace interface for in-kernel virtio accelerators. */ 18 #define VHOST_FILE_UNBIND -1 46 /* Specify an eventfd file descriptor to signal on log write. */ 61 * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL). 63 * returns -EBUSY. 74 /* The following ioctls use eventfd file descriptors to signal and poll 79 /* Set eventfd to signal when buffers have beed used */ 81 /* Set eventfd to signal an error */ 99 * used for transmit. Pass fd -1 to unbind from the socket and the transmit [all …]
|
/Linux-v6.1/tools/perf/scripts/python/ |
D | compaction-times.py | 11 import signal 12 signal.signal(signal.SIGPIPE, signal.SIG_DFL) 14 … "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid… 34 return m == None or m.group() == "" 52 return "%dns" % ns if opt_ns else "%dus" % (round(ns, -3) / 1000) 97 self.ns = ns(secs, nsecs) - self.ns 251 sys.stdout.write("-h display this help\n") 252 sys.stdout.write("-p display by process\n") 253 sys.stdout.write("-pv display by process (verbose)\n") 254 sys.stdout.write("-t display stall times only\n") [all …]
|
/Linux-v6.1/tools/power/x86/amd_pstate_tracer/ |
D | amd_pstate_trace.py | 2 # SPDX-License-Identifier: GPL-2.0-only 3 # -*- coding: utf-8 -*- 6 AMD P-State driver. It imports intel_pstate_tracer to analyze AMD P-State 12 gnuplot-py 1.8 or higher 14 gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... ) 27 import signal 122 …tle_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf-8… 136 …tle_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf-8… 151 …tle_list = subprocess.check_output('ls cpu???.csv | sed -e \'s/.csv//\'',shell=True).decode('utf-8… 204 cpu = search_obj.group(3) [all …]
|
/Linux-v6.1/Documentation/admin-guide/cgroup-v1/ |
D | hugetlb.rst | 7 # mount -t cgroup -o hugetlb none /sys/fs/cgroup 9 With the above step, the initial or the parent HugeTLB group becomes 10 visible at /sys/fs/cgroup. At bootup, this group includes all the tasks in 13 New groups can be created under the parent group /sys/fs/cgroup:: 19 The above steps create a new group g1 and move the current shell 25 …rsvd.max_usage_in_bytes # show max "hugepagesize" hugetlb reservations and no-reserve faults 26 …hugetlb.<hugepagesize>.rsvd.usage_in_bytes # show current reservations and no-reserve f… 74 control group and enforces the limit during page fault. Since HugeTLB 76 that, the application will get SIGBUS signal if it tries to fault in HugeTLB 91 group and enforces the controller limit at reservation time and at the fault of [all …]
|
/Linux-v6.1/scripts/ |
D | bloat-o-meter | 5 # inspired by perl Bloat-O-Meter (c) 1997 by Andi Kleen 11 from signal import signal, SIGPIPE, SIG_DFL 13 signal(SIGPIPE, SIG_DFL) 16 group = parser.add_mutually_exclusive_group() variable 17 group.add_argument('-c', help='categorize output based on symbol type', action='store_true') 18 group.add_argument('-d', help='Show delta of Data Section', action='store_true') 19 group.add_argument('-t', help='Show delta of text Section', action='store_true') 20 parser.add_argument('-p', dest='prefix', help='Arch prefix for the tool being used. Useful in cross… 26 re_NUMBER = re.compile(r'\.[0-9]+') 34 with os.popen("{} --size-sort {}".format(nm, file)) as f: [all …]
|
/Linux-v6.1/kernel/time/ |
D | posix-cpu-timers.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/sched/signal.h> 8 #include <linux/posix-timers.h> 20 #include "posix-timers.h" 28 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init() 29 pct->timers_active = true; in posix_cputimers_group_init() 35 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if 39 * Returns 0 on success, -ESRCH on failure. Can fail if the task is exiting and 48 return -ESRCH; in update_rlimit_cpu() 102 ret = pid_for_clock(clock, false) ? 0 : -EINVAL; in validate_clock_permissions() [all …]
|
/Linux-v6.1/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <signal.h> 28 static uid_t group = 60000; variable 61 signal(SIGUSR1, SIG_DFL); in fork_child() 63 warnx("(pid=%d): Changing to uid=%d, gid=%d", pid, user, group); in fork_child() 65 if (setgid(group) < 0) in fork_child() 66 err(EXIT_FAILURE, "(pid=%d): setgid(%d)", pid, group); in fork_child() 128 child[i] *= -1; in main() 129 childs -= 1; in main() 147 pid, -child[i], WEXITSTATUS(wstatus[i])); in main() [all …]
|
/Linux-v6.1/kernel/sched/ |
D | autogroup.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Auto-group scheduling implementation: 38 init_task->signal->autogroup = &autogroup_default; in autogroup_init() 44 kfree(tg->autogroup); in autogroup_free() 52 /* We've redirected RT tasks to the root task group... */ in autogroup_destroy() 53 ag->tg->rt_se = NULL; in autogroup_destroy() 54 ag->tg->rt_rq = NULL; in autogroup_destroy() 56 sched_release_group(ag->tg); in autogroup_destroy() 57 sched_destroy_group(ag->tg); in autogroup_destroy() 62 kref_put(&ag->kref, autogroup_destroy); in autogroup_kref_put() [all …]
|
/Linux-v6.1/drivers/gpu/drm/rcar-du/ |
D | rcar_du_crtc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * R-Car Display Unit CRTCs 5 * Copyright (C) 2013-2015 Renesas Electronics Corporation 26 * struct rcar_du_crtc - the CRTC, representing a DU superposition processor 37 * @flip_wait: wait queue used to signal page flip completion 39 * @vblank_wait: wait queue used to signal vertical blanking 41 * @group: CRTC group this CRTC belongs to 67 struct rcar_du_group *group; member 82 * struct rcar_du_crtc_state - Driver-specific CRTC state
|
/Linux-v6.1/fs/notify/fanotify/ |
D | fanotify.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/sched/signal.h> 23 return p1->mnt == p2->mnt && p1->dentry == p2->dentry; in fanotify_path_equal() 28 return hash_ptr(path->dentry, FANOTIFY_EVENT_HASH_BITS) ^ in fanotify_hash_path() 29 hash_ptr(path->mnt, FANOTIFY_EVENT_HASH_BITS); in fanotify_hash_path() 35 return fsid1->val[0] == fsid2->val[0] && fsid1->val[1] == fsid2->val[1]; in fanotify_fsid_equal() 40 return hash_32(fsid->val[0], FANOTIFY_EVENT_HASH_BITS) ^ in fanotify_hash_fsid() 41 hash_32(fsid->val[1], FANOTIFY_EVENT_HASH_BITS); in fanotify_hash_fsid() 47 if (fh1->type != fh2->type || fh1->len != fh2->len) in fanotify_fh_equal() 50 return !fh1->len || in fanotify_fh_equal() [all …]
|