diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-02-18 11:25:28 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-02-18 11:25:28 +0000 |
commit | c512562447150349fbae74f1aa42ad893e56bb17 (patch) | |
tree | 2cfe108005c107d3f1b95b7a20753bd13dabd659 /libutil | |
parent | 8b331e545a83b4c5a89a6d8dc069f2b974646623 (diff) | |
download | pw-darwin-c512562447150349fbae74f1aa42ad893e56bb17.tar.gz pw-darwin-c512562447150349fbae74f1aa42ad893e56bb17.tar.zst pw-darwin-c512562447150349fbae74f1aa42ad893e56bb17.zip |
Add utility functions for checking if a given kernel module is loaded,
and loading it.
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/libutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index 961fa1b..aefff0c 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -94,6 +94,10 @@ int realhostname(char *host, size_t hsize, const struct in_addr *ip); struct sockaddr; int realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen); + +int kld_isloaded(const char *name); +int kld_load(const char *name); + #ifdef _STDIO_H_ /* avoid adding new includes */ char *fparseln(FILE *, size_t *, size_t *, const char[3], int); #endif @@ -119,6 +123,7 @@ int pidfile_write(struct pidfh *pfh); int pidfile_close(struct pidfh *pfh); int pidfile_remove(struct pidfh *pfh); #endif + __END_DECLS #define UU_LOCK_INUSE (1) |