aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sysctl.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2015-09-15 23:06:56 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2015-09-15 23:06:56 +0000
commit7665e341cae225b650174db2fdb769619f62fca6 (patch)
tree455ed0dbc0d430d92a6eb5d578f9a1f9c21aa40c /sys/sys/sysctl.h
parente89d5f43da49d978ac6fe7f78247de590e862416 (diff)
downloadsrc-7665e341cae225b650174db2fdb769619f62fca6.tar.gz
src-7665e341cae225b650174db2fdb769619f62fca6.zip
sysctl: switch sysctllock to a sleepable rmlock, take 2
This restores r285125. Previous attempt was reverted due to a bug in rmlocks, which is fixed since r287833.
Notes
Notes: svn path=/head/; revision=287835
Diffstat (limited to 'sys/sys/sysctl.h')
-rw-r--r--sys/sys/sysctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 988dbae94087..4c66431e55f4 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -807,8 +807,8 @@ int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old,
size_t *retval, int flags);
int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid,
int *nindx, struct sysctl_req *req);
-void sysctl_xlock(void);
-void sysctl_xunlock(void);
+void sysctl_wlock(void);
+void sysctl_wunlock(void);
int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len);
struct sbuf;