tail head cat sleep
QR code linking to this page

manページ  — KLDNEXT

名称

kldnext – 次の kld ファイルのファイル ID を返す

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <sys/param.h>
#include <sys/linker.h>

int
kldnext(int fileid);

解説

kldnext() システムコールは、次の kld ファイル (すなわち、 fileid の後のファイル) のファイル ID を返します。 または fileid が最後にロードされたファイルの場合は 0 を返します。

戻り値

kldnext() システムコールは、次の kld ファイルのファイル ID または 0 を 返します (解説を参照)。 エラーが発生した場合は、エラーを示すために errno が設定されます。

エラー

kldnext() によって設定されるエラーは ENOENT だけです。 これが設定されるのは、 fileid が存在していない (ロードされていない) kld ファイルを参照しているときです。

関連項目

kldfind(2), kldfirstmod(2), kldload(2), kldstat(2), kldsym(2), kldunload(2), modfind(2), modfnext(2), modnext(2), modstat(2), kld(4) [英語], kldstat(8)

歴史

kld インタフェースは FreeBSD 3.0 ではじめて登場しました。

KLDNEXT (2) March 3, 1999

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

This philosophy, in the hands of amateurs, leads to inexplicably mind-numbing botches like the existence of two programs, “head” and “tail,” which print the first part or the last part of a file, depending. Even though their operations are duals of one another, “head” and “tail” are different programs, written by different authors, and take different options!
— The Unix Haters' handbook