Go to main content
マニュアルページ セク ション 1M: シ ステム管理コマン ド

印刷ビューの終了

更新: 2016年12月6日
 
 

dminfo(1M)

名前

dminfo - report information about a device entry in a device maps file

形式

dminfo [-v] [-a] [
-f pathname]
dminfo [-v] [-a] [
-f pathname] -n 
dev -name...
dminfo [-v] [-a] [
-f pathname] -d 
dev -path...
dminfo [-v] [-a] [
-f pathname] -t 
dev -type...
dminfo [-v] [-f 
pathname] -u dm -
entry

説明

dminfo reports and updates information about the device_maps(4) file.

オプション

The following options are supported

–a

Succeed if any of the requested entries are found. If used with –v, all entries that match the requested case(s) are printed.

–d dev−path

Search by dev−path. Search device_maps(4) for a device special pathname in the device_list field matching the dev−path argument. This option cannot be used with –n, –t or –u.

–f pathname

Use a device_maps file with pathname instead of /etc/security/device_maps.

–n dev−name

Search by dev−name. Search device_maps(4) for a device_name field matching dev−name. This option cannot be used with –d, –t or – u.

–t dev−type

Search by dev−type. Search device_maps(4) for a device_type field matching the given dev−type. This option cannot be used with –d, –n or – u.

–u dm−entry

Update the device_maps(4) file. This option is provided to add entries to the device_maps(4) file. The dm−entry must be a complete device_maps(4) file entry. The dm−entry has fields, as in the device_maps file. It uses the colon (:) as a field separator, and white space as the device_list subfield separators. The dm−entry is not made if any fields are missing, or if the dm−entry would be a duplicate. The default device maps file can be updated only by the super user.

–v

Verbose. Print the requested entry or entries, one line per entry, on the standard output. If no entries are specified, all are printed.

使用例 1 Using –u Option

The following command shows the use of the –u option and the escaping of colon characters that are in device names.

$ dminfo -u 'audio0:audio:/dev/audio /dev/audioctl /dev/dsp /dev/dsp0
       /dev/mixer0 /dev/sound/0 /dev/sound/0ctl /dev/sound/audio810\:0mixer
       /dev/sound/audio810\:0dsp /dev/sound/audio810\:0
       /dev/sound/audio810\:0ctl'

終了ステータス

0

Successful completion.

1

Request failed.

2

Incorrect syntax.

ファイル

/etc/security/device_maps

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

関連項目

device_maps(4), attributes(5)