Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sysctl.h
Show First 20 Lines • Show All 1,122 Lines • ▼ Show 20 Lines | |||||
int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, | int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, | ||||
size_t *oldlenp, int inkernel, const void *new, size_t newlen, | size_t *oldlenp, int inkernel, const void *new, size_t newlen, | ||||
size_t *retval, int flags); | size_t *retval, int flags); | ||||
int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, | int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, | ||||
int *nindx, struct sysctl_req *req); | int *nindx, struct sysctl_req *req); | ||||
void sysctl_wlock(void); | void sysctl_wlock(void); | ||||
void sysctl_wunlock(void); | void sysctl_wunlock(void); | ||||
int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len); | int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len); | ||||
int kern___sysctlbyname(struct thread *td, const char *name, | |||||
size_t namelen, void *old, size_t *oldlenp, void *new, | |||||
size_t newlen, size_t *retval, int flags, bool inkernel); | |||||
struct sbuf; | struct sbuf; | ||||
struct sbuf *sbuf_new_for_sysctl(struct sbuf *, char *, int, | struct sbuf *sbuf_new_for_sysctl(struct sbuf *, char *, int, | ||||
struct sysctl_req *); | struct sysctl_req *); | ||||
#else /* !_KERNEL */ | #else /* !_KERNEL */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); | int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); | ||||
int sysctlbyname(const char *, void *, size_t *, const void *, size_t); | int sysctlbyname(const char *, void *, size_t *, const void *, size_t); | ||||
int sysctlnametomib(const char *, int *, size_t *); | int sysctlnametomib(const char *, int *, size_t *); | ||||
__END_DECLS | __END_DECLS | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_SYSCTL_H_ */ | #endif /* !_SYS_SYSCTL_H_ */ |