diff options
author | John Baldwin <jhb@FreeBSD.org> | 2003-03-13 22:45:43 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2003-03-13 22:45:43 +0000 |
commit | b62f75cf4406c25c5910775e81241f19ccc77e99 (patch) | |
tree | 3d9830747caf0da273c7bb49c9d4666c52ee45ce /sys/compat/linux/linux_ioctl.c | |
parent | a8b08ce3b190cf3a4af9f0c3ab93d91f7a59287d (diff) | |
download | src-b62f75cf4406c25c5910775e81241f19ccc77e99.tar.gz src-b62f75cf4406c25c5910775e81241f19ccc77e99.zip |
- Change the linux_[gs]et_os{name, release, s_version}() functions to
take a thread instead of a proc for their first argument.
- Add a mutex to protect the system-wide Linux osname, osrelease, and
oss_version variables.
- Change linux_get_prison() to take a thread instead of a proc for its
first argument and to use td_ucred rather than p_ucred. This is ok
because a thread's prison does not change even though it's ucred might.
- Also, change linux_get_prison() to return a struct prison * instead of
a struct linux_prison * since it returns with the struct prison locked
and this makes it easier to safely unlock the prison when we are done
messing with it.
Notes
Notes:
svn path=/head/; revision=112206
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 2121845e7563..b71cf6fab021 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1596,7 +1596,7 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args) return (ioctl(td, (struct ioctl_args *)args)); case LINUX_OSS_GETVERSION: { - int version = linux_get_oss_version(td->td_proc); + int version = linux_get_oss_version(td); return (copyout(&version, (void *)args->arg, sizeof(int))); } |