Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/kldload.2
| Show All 17 Lines | |||||||||
| .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||||||||
| .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||||||||
| .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||||||
| .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||||||
| .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||||||
| .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||||||
| .\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||||||
| .\" | .\" | ||||||||
| .Dd March 3, 1999 | .Dd March 26, 2026 | ||||||||
| .Dt KLDLOAD 2 | .Dt KLDLOAD 2 | ||||||||
| .Os | .Os | ||||||||
| .Sh NAME | .Sh NAME | ||||||||
| .Nm kldload | .Nm kldload | ||||||||
| .Nd load KLD files into the kernel | .Nd load KLD files into the kernel | ||||||||
| .Sh LIBRARY | .Sh LIBRARY | ||||||||
| .Lb libc | .Lb libc | ||||||||
| .Sh SYNOPSIS | .Sh SYNOPSIS | ||||||||
| .In sys/linker.h | .In sys/linker.h | ||||||||
| .Ft int | .Ft int | ||||||||
| .Fn kldload "const char *file" | .Fn kldload "const char *file" | ||||||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||||||
| The | The | ||||||||
| .Fn kldload | .Fn kldload | ||||||||
| system call | system call | ||||||||
| loads a kld file into the kernel using the kernel linker. | loads a kld file specified by | ||||||||
| .Fa file | |||||||||
| into the kernel using the kernel linker (see | |||||||||
| .Xr kld 4 ) . | |||||||||
| The | |||||||||
ziaeeUnsubmitted Not Done Inline Actions
ziaee: | |||||||||
| .Fa file | |||||||||
| can be specified as a full or relative path, or otherwise is searched | |||||||||
| within the module path as defined by the | |||||||||
Done Inline Actions
kib: | |||||||||
Done Inline ActionsI didn't quite understand: did you mean 'loader tunable' here? As I can see, kern.module_path is almost always referred to as 'sysctl'. I couldn't find it as loader tunable neither in loader.conf(5), nor in tuning(7). Or did you mean 'tunable sysctl' in sense that this sysctl variable is writable? I think I'm a little confused by the terminology. temcbun_gmail.com: I didn't quite understand: did you mean 'loader tunable' here? As I can see, kern.module_path… | |||||||||
Done Inline ActionsIt is loader tunable. kib: It is loader tunable. | |||||||||
| loader tunable and sysctl variable | |||||||||
| .Va kern.module_path . | |||||||||
| The .ko | |||||||||
| extension for | |||||||||
| .Fa file | |||||||||
Not Done Inline Actions
ziaee: | |||||||||
| is not mandatory. | |||||||||
Not Done Inline ActionsWould be nice to somehow explain what 'kld file' is. kib: Would be nice to somehow explain what 'kld file' is. | |||||||||
Done Inline ActionsRight now all the kld*(2) man pages refer to them as just 'kld files' without any additional information. I guess then we should add such explanation in all these man pages? temcbun_gmail.com: Right now all the kld*(2) man pages refer to them as just 'kld files' without any additional… | |||||||||
Not Done Inline ActionsOr add to one and xref everywhere. Ok, this can be a follow-up. kib: Or add to one and xref everywhere. Ok, this can be a follow-up. | |||||||||
| .Sh RETURN VALUES | .Sh RETURN VALUES | ||||||||
| The | The | ||||||||
| .Fn kldload | .Fn kldload | ||||||||
| system call | system call | ||||||||
| returns the fileid of the kld file which was loaded into the kernel. | returns the fileid of the kld file which was loaded into the kernel. | ||||||||
| If an error occurs, | If an error occurs, | ||||||||
| .Fn kldload | .Fn kldload | ||||||||
| will return -1 and set | will return -1 and set | ||||||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||||||