kldunloadf.2freebsd

Langue: en

Autres versions - même langue

Version: 338379 (ubuntu - 24/10/10)

Section: 2 (Appels système)


BSD mandoc

NAME

kldunload , kldunloadf - unload kld files

LIBRARY

Lb libc

SYNOPSIS

In sys/param.h In sys/linker.h Ft int Fn kldunload int fileid Ft int Fn kldunloadf int fileid int flags

DESCRIPTION

The Fn kldunload system call unloads a kld file from the kernel that was previously linked via kldload(2).

The Fn kldunloadf system call accepts an additional flags argument, which may be one of LINKER_UNLOAD_NORMAL giving the same behavior as Fn kldunload , or LINKER_UNLOAD_FORCE which causes the unload to ignore a failure to quiesce the module.

RETURN VALUES

Rv -std

ERRORS

The file referred to by Fa fileid is unloaded unless:
Bq Er EPERM
You do not have access to unlink the file from the kernel.
Bq Er ENOENT
The file was not found.
Bq Er EBUSY
You attempted to unload a file linked by the kernel.
Bq Er EINVAL
The Fn kldunloadf system call was passed invalid flags.

SEE ALSO

kldfind(2), kldfirstmod(2), kldload(2), kldnext(2), kldstat(2), kldsym(2), modfind(2), modfnext(2), modnext(2), modstat(2), kld(4), kldunload(8)

HISTORY

The kld interface first appeared in Fx 3.0 .