1 #ifndef __LIBCFS_DARWIN_INTERNAL_H__
2 #define __LIBCFS_DARWIN_INTERNAL_H__
5 #include <sys/kernel.h>
6 #include <sys/malloc.h>
8 #include <sys/sysctl.h>
10 int cfs_sysctl_isvalid(void);
11 struct sysctl_oid *cfs_alloc_sysctl_node(struct sysctl_oid_list *parent, int nbr, int access,
12 const char *name, int (*handler) SYSCTL_HANDLER_ARGS);
13 struct sysctl_oid *cfs_alloc_sysctl_int(struct sysctl_oid_list *parent, int n,
14 const char *name, int *ptr, int val);
15 struct sysctl_oid * cfs_alloc_sysctl_long(struct sysctl_oid_list *parent, int nbr, int access,
16 const char *name, int *ptr, int val);
17 struct sysctl_oid * cfs_alloc_sysctl_string(struct sysctl_oid_list *parent, int nbr, int access,
18 const char *name, char *ptr, int len);
19 struct sysctl_oid * cfs_alloc_sysctl_struct(struct sysctl_oid_list *parent, int nbr, int access,
20 const char *name, void *ptr, int size);