Searched refs:prio (Results 1 - 11 of 11) sorted by last modified time

/haiku/src/system/kernel/
H A Dthread.cpp1492 int32 prio;
1499 prio = strtoul(argv[1], NULL, 0);
1500 if (prio > THREAD_MAX_SET_PRIORITY)
1501 prio = THREAD_MAX_SET_PRIORITY;
1502 if (prio < THREAD_MIN_SET_PRIORITY)
1503 prio = THREAD_MIN_SET_PRIORITY;
1515 scheduler_set_thread_priority(thread, prio);
1516 kprintf("thread %" B_PRId32 " set to priority %" B_PRId32 "\n", id, prio);
/haiku/src/apps/processcontroller/
H A DThreadBarMenu.cpp107 PriorityMenu* prio = new PriorityMenu(info.thread, info.priority); local
108 prio->SetFont(be_plain_font);
109 ThreadBarMenuItem* threadbarmenuitem = new ThreadBarMenuItem(info.name, info.thread, prio, kill_thread);
/haiku/src/libs/compat/freebsd_network/
H A Dtaskqueue.c173 _task_init(struct task *task, int prio, task_fn_t handler, void *context) argument
175 task->ta_priority = prio;
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dtaskqueue.h105 void _task_init(struct task *, int prio, task_fn_t handler, void *arg);
106 #define TASK_INIT(taskp, prio, hand, arg) _task_init(taskp, prio, hand, arg)
/haiku/src/bin/
H A Drenice.c9 * Used the code to rewrite the 'prio' BeOS command for Haiku.
37 prio is locked into one pid, then the priority.
51 static int32 prio_be_to_unix(int32 prio) argument
53 if (prio > BZERO)
54 return NZERO - ((prio - BZERO) * NZERO) / (BMIN - BZERO);
55 return NZERO + ((BZERO - prio) * (NZERO - 1)) / (BZERO - BMAX);
59 static int32 prio_unix_to_be(int32 prio) argument
61 if (prio > NZERO)
62 return BZERO - ((prio - NZERO) * (BZERO - BMAX)) / (NZERO-1);
63 return BZERO + ((NZERO - prio) * (BMI
66 renice_thread(int32 prio, int32 increment, bool use_be_prio, thread_id th) argument
85 int32 prio, increment = 0; local
[all...]
H A Dprio.c0 /* prio.c - prio command for BeOs, change priority of a given thread
9 * Initial. Used my renice.c code to rewrite 'prio' BeOS command for Haiku.
11 * prio is a stripped-down version of renice
22 int32 prio; local
26 puts("Usage: prio pid newpriority");
31 prio = atoi(argv[2]);
34 ret = set_thread_priority(th, prio);
/haiku/src/system/libroot/posix/sys/
H A Dpriority.c70 prio_be_to_unix(int32 prio) argument
73 if (prio >= BZERO)
75 - ((prio - BZERO) * NZERO + (BMAX - BZERO) / 2) / (BMAX - BZERO);
79 + ((BZERO - prio) * (NZERO - 1)) / (BZERO - BMIN)
88 prio_unix_to_be(int32 prio) argument
92 if (prio >= NZERO)
93 out = BZERO - ((prio - NZERO) * (BZERO - BMIN)) / (NZERO - 1);
95 out = BZERO + ((NZERO - prio) * (BMAX - BZERO)) / (NZERO);
/haiku/src/libs/compat/freebsd_iflib/
H A Dkthread.cpp37 sched_prio(struct thread* td, u_char prio) argument
40 set_thread_priority((thread_id)tdi, prio);
/haiku/src/libs/compat/freebsd_iflib/compat/sys/
H A Dkthread.h16 void sched_prio(struct thread* td, u_char prio);
/haiku/3rdparty/mmu_man/scripts/
H A Ddev-perso123 prio $$ 1
196 prio $$ 1
/haiku/src/add-ons/kernel/busses/scsi/virtio/
H A Dvirtio_scsi.h48 uint8_t prio; member in struct:virtio_scsi_cmd_req

Completed in 151 milliseconds