mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Un-static cpuset_which() - it's useful in other contexts, such as some
CPU set operations in my upcoming NUMA work. Tested/compiled: * i386 (run) * amd64 (run) * mips (run) * mips64 (run) * armv6 (built) Sponsored by: Norse Corp, Inc.
This commit is contained in:
parent
f902ea0761
commit
5bbb2169d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284866
@ -400,7 +400,7 @@ cpuset_modify(struct cpuset *set, cpuset_t *mask)
|
||||
* -1 may be supplied for any argument to mean the current proc/thread or
|
||||
* the base set of the current thread. May fail with ESRCH/EPERM.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
cpuset_which(cpuwhich_t which, id_t id, struct proc **pp, struct thread **tdp,
|
||||
struct cpuset **setp)
|
||||
{
|
||||
|
@ -124,6 +124,9 @@ int cpuset_setthread(lwpid_t id, cpuset_t *);
|
||||
int cpuset_setithread(lwpid_t id, int cpu);
|
||||
int cpuset_create_root(struct prison *, struct cpuset **);
|
||||
int cpuset_setproc_update_set(struct proc *, struct cpuset *);
|
||||
int cpuset_which(cpuwhich_t, id_t, struct proc **,
|
||||
struct thread **, struct cpuset **);
|
||||
|
||||
char *cpusetobj_strprint(char *, const cpuset_t *);
|
||||
int cpusetobj_strscan(cpuset_t *, const char *);
|
||||
#ifdef DDB
|
||||
|
Loading…
Reference in New Issue
Block a user