tail head cat sleep
QR code linking to this page

manページ  — DEVSW

名称

devsw – cdevsw 構造体の取得

内容

書式

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

struct cdevsw *
devsw(dev_t dev);

解説

devsw() 関数はこの文字型デバイス ID に関連付けられた cdevsw 構造体へのポインタを返します。 dev->si_cdevsw が設定されている場合にはそれが返され、そうでない場合には cdevsw 配列へ major(9) 値分オフセットさせたものが返されます。

引数は以下の通りです。
dev
  返されるべき cdevsw エントリのデバイスです。

戻り値

cdevsw 構造体へのポインタです。

関連項目

major(9), minor(9), umajor(9), uminor(9)

作者

このマニュアルページは Chad David <davidc@acns.ab.ca> が書きました。

DEVSW (9) July 9, 2001

tail head cat sleep
QR code linking to this page


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

“ Computer science would have progressed much further and faster if all of the time and effort that has been spent maintaining and nurturing Unix had been spent on a sounder operating system. ”
— The Unix Haters' handbook