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.

“ Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual). ”
— The Unix Haters' handbook