tail head cat sleep
QR code linking to this page

manページ  — DEVCLASS_GET_DEVICE

名称

devclass_get_device – ユニット番号からデバイスへの変換

内容

書式

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

device_t
devclass_get_device(devclass_t dc, int unit);

解説

この関数は、指定されたユニット番号のデバイスインスタンスを取り出し、 それを返します。

戻り値

デバイスが存在する場合にはそのデバイスが返され、 そうでない場合には NULL が返されます。

関連項目

devclass(9), device(9)

作者

このマニュアルページは Doug Rabson が書きました。

DEVCLASS_GET_DEVICE (9) June 16, 1998

tail head cat sleep
QR code linking to this page


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

“ "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." ”
— Ken Pier, Xerox PARC