Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/freebsd32/freebsd32_misc.c
Show First 20 Lines • Show All 2,550 Lines • ▼ Show 20 Lines | if (error == 0) | ||||
td->td_retval[0] = ksi.ksi_signo; | td->td_retval[0] = ksi.ksi_signo; | ||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
freebsd32_cpuset_setid(struct thread *td, | freebsd32_cpuset_setid(struct thread *td, | ||||
struct freebsd32_cpuset_setid_args *uap) | struct freebsd32_cpuset_setid_args *uap) | ||||
{ | { | ||||
struct cpuset_setid_args ap; | |||||
ap.which = uap->which; | return (kern_cpuset_setid(td, uap->which, | ||||
ap.id = PAIR32TO64(id_t,uap->id); | PAIR32TO64(id_t, uap->id), uap->setid)); | ||||
ap.setid = uap->setid; | |||||
return (sys_cpuset_setid(td, &ap)); | |||||
} | } | ||||
int | int | ||||
freebsd32_cpuset_getid(struct thread *td, | freebsd32_cpuset_getid(struct thread *td, | ||||
struct freebsd32_cpuset_getid_args *uap) | struct freebsd32_cpuset_getid_args *uap) | ||||
{ | { | ||||
struct cpuset_getid_args ap; | |||||
ap.level = uap->level; | return (kern_cpuset_getid(td, uap->level, uap->which, | ||||
ap.which = uap->which; | PAIR32TO64(id_t, uap->id), uap->setid)); | ||||
ap.id = PAIR32TO64(id_t,uap->id); | |||||
ap.setid = uap->setid; | |||||
return (sys_cpuset_getid(td, &ap)); | |||||
} | } | ||||
int | int | ||||
freebsd32_cpuset_getaffinity(struct thread *td, | freebsd32_cpuset_getaffinity(struct thread *td, | ||||
struct freebsd32_cpuset_getaffinity_args *uap) | struct freebsd32_cpuset_getaffinity_args *uap) | ||||
{ | { | ||||
struct cpuset_getaffinity_args ap; | struct cpuset_getaffinity_args ap; | ||||
▲ Show 20 Lines • Show All 569 Lines • Show Last 20 Lines |