Home
last modified time | relevance | path

Searched refs:pri (Results 1 – 2 of 2) sorted by relevance

/busybox-1.35.0/util-linux/
Dionice.c65 int pri = 0; in ionice_main() local
77 opt = getopt32(argv, "+""n:+c:+p:+t", &pri, &ioclass, &pid); in ionice_main()
97 pri = ioprio_get(IOPRIO_WHO_PROCESS, pid); in ionice_main()
98 if (pri == -1) in ionice_main()
101 ioclass = (pri >> IOPRIO_CLASS_SHIFT) & 0x3; in ionice_main()
102 pri &= 0xff; in ionice_main()
104 nth_string(to_prio, ioclass), pri); in ionice_main()
108 pri |= (ioclass << IOPRIO_CLASS_SHIFT); in ionice_main()
109 if (ioprio_set(IOPRIO_WHO_PROCESS, pid, pri) == -1) in ionice_main()
/busybox-1.35.0/sysklogd/
Dsyslogd.c674 static void log_to_kmsg(int pri, const char *msg) in log_to_kmsg() argument
680 pri &= G.primask; in log_to_kmsg()
682 full_write(G.kmsgfd, G.printbuf, sprintf(G.printbuf, "<%d>%s\n", pri, msg)); in log_to_kmsg()
687 static void log_to_kmsg(int pri UNUSED_PARAM, const char *msg UNUSED_PARAM) {} in log_to_kmsg()
806 static void parse_fac_prio_20(int pri, char *res20) in parse_fac_prio_20() argument
810 c_fac = find_by_val(LOG_FAC(pri) << 3, bb_facilitynames); in parse_fac_prio_20()
812 c_pri = find_by_val(LOG_PRI(pri), bb_prioritynames); in parse_fac_prio_20()
818 snprintf(res20, 20, "<%d>", pri); in parse_fac_prio_20()
824 static void timestamp_and_log(int pri, char *msg, int len) in timestamp_and_log() argument
862 log_to_kmsg(pri, msg); in timestamp_and_log()
[all …]