summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 14:44:41 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 14:44:41 +0000
commit0553d7262b395939b0a1e995f66c12c0ffca33c2 (patch)
treecb6b662d8b47dd492cecafa6a6bffb42dec96a6c /sys/sys
parentf8883c94b256f21d4a5e539b6c728690ff9c75de (diff)
downloadFreeBSD-src-0553d7262b395939b0a1e995f66c12c0ffca33c2.zip
FreeBSD-src-0553d7262b395939b0a1e995f66c12c0ffca33c2.tar.gz
MFC r283377:
In preparation for switching linuxulator to the use the native 1:1 threads split sys_sched_getparam(), sys_sched_setparam(), sys_sched_getscheduler(), sys_sched_setscheduler() to their kern_* counterparts and add targettd parameter to allow specify the target thread directly by callee.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/syscallsubr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 94ff523..deeac83 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -55,6 +55,7 @@ struct sendfile_args;
struct sockaddr;
struct stat;
struct thr_param;
+struct sched_param;
struct __wrusage;
int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,
@@ -195,6 +196,14 @@ int kern_renameat(struct thread *td, int oldfd, char *old, int newfd,
int kern_rmdir(struct thread *td, char *path, enum uio_seg pathseg);
int kern_rmdirat(struct thread *td, int fd, char *path,
enum uio_seg pathseg);
+int kern_sched_getparam(struct thread *td, struct thread *targettd,
+ struct sched_param *param);
+int kern_sched_getscheduler(struct thread *td, struct thread *targettd,
+ int *policy);
+int kern_sched_setparam(struct thread *td, struct thread *targettd,
+ struct sched_param *param);
+int kern_sched_setscheduler(struct thread *td, struct thread *targettd,
+ int policy, struct sched_param *param);
int kern_sched_rr_get_interval(struct thread *td, pid_t pid,
struct timespec *ts);
int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd,
OpenPOWER on IntegriCloud