diff options
author | des <des@FreeBSD.org> | 2006-02-18 11:25:28 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2006-02-18 11:25:28 +0000 |
commit | 748c235cfd99c801088fb73c735a91b031cac89b (patch) | |
tree | f8e33dca170a81252d62b0bdc19991f3521db36b /lib/libutil/libutil.h | |
parent | 5729ae2a57c3327356e04ecd66634c4ee8ad5cbb (diff) | |
download | FreeBSD-src-748c235cfd99c801088fb73c735a91b031cac89b.zip FreeBSD-src-748c235cfd99c801088fb73c735a91b031cac89b.tar.gz |
Add utility functions for checking if a given kernel module is loaded,
and loading it.
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r-- | lib/libutil/libutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index 961fa1b..aefff0c 100644 --- a/lib/libutil/libutil.h +++ b/lib/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) |