DEVCLASS_GET_DEVICES(9) | FreeBSD Kernel Developer's Manual | DEVCLASS_GET_DEVICES(9) |
名称
devclass_get_devices — devclass のデバイスのリストを取得する書式
#include < sys/param.h>#include < sys/bus.h>
int
devclass_get_devices( devclass_t dc, device_t **devlistp, int *devcountp);
解説
devclass の現在のすべてのデバイスのインスタンスのリストを検索して、 *devlistp のリストと *devcountp のカウントを返します。リストのために割り付けられたメモリは、たとえ、 *devcountp が 0 であっても、 free( *devlistp, M_TEMP) を使用して解放されるべきです。戻り値
成功すれば、0 が返され、そうでなければ、適切なエラーが返されます。作者
このマニュアルページは、 によって書かれました。May 19, 2005 | FreeBSD |