summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2006-02-18 11:25:28 +0000
committerdes <des@FreeBSD.org>2006-02-18 11:25:28 +0000
commit748c235cfd99c801088fb73c735a91b031cac89b (patch)
treef8e33dca170a81252d62b0bdc19991f3521db36b /lib/libutil/libutil.h
parent5729ae2a57c3327356e04ecd66634c4ee8ad5cbb (diff)
downloadFreeBSD-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.h5
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)
OpenPOWER on IntegriCloud