Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kldload(2) [netbsd man page]

KLDLOAD(2)						      BSD System Calls Manual							KLDLOAD(2)

NAME
kldload -- load KLD files into the kernel LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/param.h> #include <sys/linker.h> int kldload(const char *file); DESCRIPTION
The kldload() system call loads a kld file into the kernel using the kernel linker. RETURN VALUES
The kldload() system call returns the fileid of the kld file which was loaded into the kernel. If an error occurs, kldload() will return -1 and set errno to indicate the error. ERRORS
The named file is loaded unless: [EPERM] You do not have access to read the file or link it with the kernel. You should be the root user to be able to use the kld system calls. [EFAULT] Bad address encountered when adding kld info into the kernel space. [ENOMEM] There is no memory to load the file into the kernel. [ENOENT] The file was not found. [ENOEXEC] The file format of file was unrecognized. [EEXIST] The supplied file has already been loaded. SEE ALSO
kldfind(2), kldfirstmod(2), kldnext(2), kldstat(2), kldsym(2), kldunload(2), modfind(2), modfnext(2), modnext(2), modstat(2), kld(4), kldload(8) HISTORY
The kld interface first appeared in FreeBSD 3.0. BSD
March 3, 1999 BSD

Check Out this Related Man Page

KLDLOAD(2)						      BSD System Calls Manual							KLDLOAD(2)

NAME
kldload -- load KLD files into the kernel LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/param.h> #include <sys/linker.h> int kldload(const char *file); DESCRIPTION
The kldload() system call loads a kld file into the kernel using the kernel linker. RETURN VALUES
The kldload() system call returns the fileid of the kld file which was loaded into the kernel. If an error occurs, kldload() will return -1 and set errno to indicate the error. ERRORS
The named file is loaded unless: [EPERM] You do not have access to read the file or link it with the kernel. You should be the root user to be able to use the kld system calls. [EFAULT] Bad address encountered when adding kld info into the kernel space. [ENOMEM] There is no memory to load the file into the kernel. [ENOENT] The file was not found. [ENOEXEC] The file format of file was unrecognized. [EEXIST] The supplied file has already been loaded. SEE ALSO
kldfind(2), kldfirstmod(2), kldnext(2), kldstat(2), kldsym(2), kldunload(2), modfind(2), modfnext(2), modnext(2), modstat(2), kld(4), kldload(8) HISTORY
The kld interface first appeared in FreeBSD 3.0. BSD
March 3, 1999 BSD
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sound card doesn't work!

Hello I have just installed Free BSD on my old computer system to learn how to use it and I can't get any sound. When I start KDE desktop I receve a message that says "Sound server informational message: Error while initializing the sound driver: device /dev/dsp can't be opened (No such file... (1 Reply)
Discussion started by: ac101
1 Replies

2. UNIX for Dummies Questions & Answers

HSBC Payment Integration on Unix

Hi I'm hoping someone can help a complete *nix amatuer here. I've been asked to implement HSBC payment integration for a client. HSBC supply (amongst others) Linux and Windows libraries, and I've been asked to see if we can implement this on our dedicated Unix host. Basically the system... (5 Replies)
Discussion started by: elkdanger
5 Replies

3. IP Networking

Lost Connectivity to the Internet

I'm running FreeBSD 6.2 and suddenly lost connectivity to the net. After unplugging the router and checking all the connections I could find nothing wrong. All the driver software seems to be intact. I thought I would remove the driver software and restore it. However, when I go to root and type ... (5 Replies)
Discussion started by: Aaron Van
5 Replies

4. UNIX for Dummies Questions & Answers

Capturing a non-result of a command

The following pseudo-code should be clear to what I am trying to achieve: if ; then kldload linux echo 'linux_enable="YES"' >> /etc/rc.conf fi What is the proper syntax or operator for the test? Thanks in advance (5 Replies)
Discussion started by: figaro
5 Replies

5. BSD

FreeBSD 8.2 Huawei E1750 ppp

Hi guys My DSL went down this morning and I needed internet to work. I searched for a config all over but couldn't find exactly what I wanted. After a bit I got mine working fine so I thought I'd post this to help anyone else out there. I am using a Huawei E1750 on T-Mobile UK running FreeBSD... (0 Replies)
Discussion started by: cmilos
0 Replies

6. BSD

FreeBSD and realtek wifi controllers...?

Hi. I have been running OpenBSD(4.9) and it recognizes my Belkin wireless adapter and I don't have issues with it very often. I prefer FreeBSD over OpenBSD, but FreeBSD(7.4) doesnt recognize my USB wifi card. Under OpenBSD ifconfig shows my card as rsu0 so I tried adding the following to... (1 Reply)
Discussion started by: bsdforme
1 Replies