tail head cat sleep
QR code linking to this page

manページ  — DEVICE_SET_DESC

名称

device_set_desc, device_set_desc_copy, device_get_desc – デバイスの記述にアクセス

内容

書式

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

void
device_set_desc(device_t dev, const char *desc);

void
device_set_desc_copy(device_t dev, const char *desc);

const char *
device_get_desc(device_t dev);

解説

デバイスの冗長な記述を操作します。 (存在するならば) この記述は、 自動コンフィギュレーションの間のアタッチ時に、 メッセージの一部として表示されます。 変種の device_set_desc_copy() は、渡される文字列が上書きされるかも知れない一時的なバッファである場合に、 使用されます。 この場合にはシステムはその文字列をコピーしますが、 そうでない場合には渡されたポインタが直接使用されます。

関連項目

device(9)

作者

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

DEVICE_SET_DESC (9) June 16, 1998

tail head cat sleep
QR code linking to this page


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

Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps.
— The Unix Haters' handbook