Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
.\" *** ------------------------------------------------------------------
.\" *** This file was generated automatically
.\" *** from src/etc/MAKEDEV.tmpl and
.\" *** src/share/man/man8/MAKEDEV.8.template
.\" ***
.\" *** DO NOT EDIT - any changes will be lost!!!
.\" *** ------------------------------------------------------------------
.\"
.\" $NetBSD: MAKEDEV.8,v 1.57 2020/04/01 15:33:50 gson Exp $
.\"
.\" Copyright (c) 2001, 2003, 2007, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Thomas Klausner.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd April  1, 2020
.Dt MAKEDEV 8
.Os
.Sh NAME
.Nm MAKEDEV
.Nd create system and device special files
.Sh SYNOPSIS
.\" Please keep this in sync with MAKEDEV.local.8
.Nm
.Op Fl fMsu
.Op Fl m Ar mknod
.Op Fl p Ar pax
.Op Fl t Ar mtree
.Bro Ar special | device Brc Op Ar ...
.Sh DESCRIPTION
.Nm
is used to create system and device special files.
As arguments it takes the names of known devices, like
.Ar sd0 ,
or of special targets, like
.Pa all
or
.Pa std ,
which create a collection of device special files,
or
.Pa local ,
which invokes
.Xr MAKEDEV.local 8
with the
.Pa all
argument.
.Pp
The script is in
.Pa /dev/MAKEDEV .
Devices are created in the current working directory;
in normal use,
.Nm
should be invoked with
.Pa /dev
as the current working directory.
.Pp
Supported options are:
.Bl -tag -width XmXmknodXX
.It Fl f
Force permissions to be updated on existing devices.
This works only if
.Nm
invokes
.Xr mknod 8 ;
it is not compatible with the
.Fl p ,
.Fl s ,
or
.Fl t
options.
.It Fl M
Create a memory file system, union mounted over the current directory,
to contain the device special files.
The memory file system is created using
.Xr mount_tmpfs 8
or
.Xr mount_mfs 8 ,
in that order of preference.
.Pp
If the
.Fl M
flag is specified more than once, then
.Nm
assumes that it is being invoked from
.Xr init 8
to populate a memory file system for
.Pa /dev .
In this case,
.Nm
will also redirect its output to the system console.
.It Fl m Ar mknod
Force the use of
.Xr mknod 8 ,
and specify the name or path to the
.Xr mknod 8
program.
[Usually, $TOOL_MKNOD or mknod.]
.It Fl p Ar pax
Force the use of
.Xr pax 1 ,
and specify the name or path to the
.Xr pax 1
program.
[Usually, $TOOL_PAX or pax.]
.It Fl s
Generate an
.Xr mtree 8
specfile instead of creating devices.
.It Fl t Ar mtree
Force the use of
.Xr mtree 8 ,
and specify the name or path to the
.Xr mtree 8
program.
[Usually, $TOOL_MTREE or mtree.]
.It Fl u
Don't re-create devices that already exist.
.El
.Pp
.Nm
has several possible methods of creating device nodes:
.Bl -bullet
.It
By invoking the
.Xr mknod 8
command once for each device node.
This is the traditional method, but it is slow because each device node
is created using a new process.
.Pp
The
.Fl m
option forces
.Nm
to use the
.Xr mknod 8
method.
.It
By internally creating a specfile in a format usable by
.Xr mtree 8 ,
and providing the specfile on standard input to a
.Xr pax 1
or
.Xr mtree 8
command, invoked with options that request it to create the device nodes
as well as any necessary subdirectories.
This is much faster than creating device nodes with
.Xr mknod 8 ,
because it requires much fewer processes;
however, it's not compatible with the
.Fl f
option.
.Pp
The
.Fl p
or
.Fl t
options force
.Nm
to use the
.Xr pax 1
or
.Xr mtree 8
methods.
.It
If the
.Fl s
option is specified, then
.Nm
will not create device nodes at all, but will output
a specfile in a format usable by
.Xr mtree 8 .
.El
.Pp
The
.Fl m , Fl p , Fl s ,
and
.Fl t
flags are mutually exclusive.
If none of these flags is specified, then
.Nm
will use
.Xr mtree 8 ,
.Xr pax 1 ,
or
.Xr mknod 8 ,
in that order of preference, depending on which commands
appear to be available and usable.
In normal use, it's expected that
.Xr mtree 8
will be available, so it will be chosen.
If
.Nm
is invoked by
.Xr init 8 ,
it's expected that
.Xr mtree 8
will not be available, but
.Xr pax 1
may be available.
.Pp
The special targets supported on
.Nx
are:
.Pp
.\" @@@SPECIAL@@@
.Bl -tag -width 01234567 -compact
.It Ar all
Makes all known devices, including local devices. Tries to make the 'standard' number of each type.
.It Ar init
A set of devices that is used for MFS /dev by init. May be equal to ``all''.
.It Ar floppy
Devices to be put on install floppies
.It Ar ramdisk
Devices to be put into INSTALL kernel ramdisks.
.It Ar std
Standard devices
.It Ar local
Configuration specific devices
.It Ar lua
Lua device
.It Ar wscons
Make wscons devices
.It Ar usbs
Make USB devices
.El
.Pp
Please note that any hash marks
.Pq Dq #
in the following list of supported device targets must be replaced by
digits when calling
.Nm :
.Pp
.\" @@@DEVICES@@@
.Bl -tag -width 01
.It Tapes :
. Bl -tag -width 0123456789 -compact
. It Ar st#
SCSI tapes, see
.Xr \&st 4
. It Ar wt#
QIC-interfaced (e.g. not SCSI) 3M cartridge tape, see
.Xr \&wt 4
. It Ar ht#
MASSBUS TM03 and TU??, see
.Xr \&vax/ht 4
. It Ar mt#
MSCP tapes (e.g. TU81, TK50), see
.Xr \&vax/mt 4
. It Ar tm#
UNIBUS TM11 and TE10 emulations (e.g. Emulex TC-11), see
.Xr \&vax/tm 4
. It Ar ts#
UNIBUS TS11, see
.Xr \&vax/ts 4
. It Ar ut#
UNIBUS TU45 emulations (e.g. si 9700), see
.Xr \&vax/ut 4
. It Ar uu#
TU58 cassettes on DL11 controller, see
.Xr \&vax/uu 4
. El
.It Disks :
. Bl -tag -width 0123456789 -compact
. It Ar dk#
Wedge disk slices, see
.Xr \&dk 4
. It Ar ccd#
Concatenated disk devices, see
.Xr \&ccd 4
. It Ar cd#
SCSI or ATAPI CD-ROM, see
.Xr \&cd 4
. It Ar cgd#
Cryptographic disk devices, see
.Xr \&cgd 4
. It Ar raid#
RAIDframe disk devices, see
.Xr \&raid 4
. It Ar sd#
SCSI disks, see
.Xr \&sd 4
. It Ar wd#
``winchester'' disk drives (ST506,IDE,ESDI,RLL,...), see
.Xr \&wd 4
. It Ar bmd#
Nereid bank memory disks, see
.Xr \&x68k/bmd 4
. It Ar ed#
IBM PS/2 ESDI disk devices, see
.Xr \&edc 4
. It Ar fd#
``floppy'' disk drives (3 1/2", 5 1/4"), see
.Xr \&amiga/fdc 4 ,
.Xr \&sparc64/fdc 4 ,
.Xr \&x86/fdc 4
. It Ar fss#
Files system snapshot devices, see
.Xr \&fss 4
. It Ar gdrom#
Dreamcast ``gigadisc'' CD-ROM drive, see
.Xr \&dreamcast/gdrom 4
. It Ar hk#
UNIBUS RK06 and RK07, see
.Xr \&vax/hk 4
. It Ar hp#
MASSBUS RM??, see
.Xr \&vax/hp 4
. It Ar ld#
Logical disk devices (e.g., hardware RAID), see
.Xr \&ld 4
. It Ar mcd#
Mitsumi CD-ROM, see
.Xr \&mcd 4
. It Ar md#
Memory pseudo-disk devices, see
.Xr \&md 4
. It Ar ofdisk#
OpenFirmware disk devices
. It Ar ra#
MSCP disks (RA??, RD??)
. It Ar rb#
730 IDC w/ RB80 and/or RB02
. It Ar rd#
HDC9224 RD disks on VS2000, see
.Xr \&hp300/rd 4
. It Ar rl#
UNIBUS RL02, see
.Xr \&vax/rl 4
. It Ar rx#
MSCP floppy disk (RX33/50/...)
. It Ar up#
Other UNIBUS devices (e.g. on Emulex SC-21V controller), see
.Xr \&vax/up 4
. It Ar vnd#
``file'' pseudo-disks, see
.Xr \&vnd 4
. It Ar xbd#
Xen virtual disks, see
.Xr \&xbd 4
. It Ar xd#
Xylogic 753/7053 disks, see
.Xr \&sparc/xd 4
. It Ar xy#
Xylogic 450/451 disks, see
.Xr \&sparc/xy 4
. El
.It Pointing devices :
. Bl -tag -width 0123456789 -compact
. It Ar wsmouse#
wscons mouse events, see
.Xr \&wsmouse 4
. It Ar lms#
Logitech bus mouse, see
.Xr \&i386/lms 4
. It Ar mms#
Microsoft bus mouse, see
.Xr \&dreamcast/mms 4 ,
.Xr \&i386/mms 4
. It Ar qms#
``quadrature mouse'', see
.Xr \&acorn32/qms 4
. It Ar pms#
PS/2 mouse
. It Ar mouse
Mouse (provides events, for X11)
. El
.It Keyboard devices :
. Bl -tag -width 0123456789 -compact
. It Ar wskbd#
wscons keyboard events, see
.Xr \&wskbd 4
. It Ar kbd
Raw keyboard (provides events, for X11), see
.Xr \&sparc/kbd 4 ,
.Xr \&sun2/kbd 4 ,
.Xr \&sun3/kbd 4
. It Ar kbdctl
Keyboard control
. El
.It Terminals/Console ports :
. Bl -tag -width 0123456789 -compact
. It Ar tty[01]#
Standard serial ports, see
.Xr \&tty 4
. It Ar tty0#
SB1250 (``sbscn'') serial ports (sbmips), see
.Xr \&tty 4
. It Ar ttyE#
wscons - Workstation console (``wscons'') glass-tty emulators
. It Ar ttyCZ?
Cyclades-Z multiport serial boards. Each ``unit'' makes 64 ports., see
.Xr \&cz 4
. It Ar ttyCY?
Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports., see
.Xr \&cy 4
. It Ar ttye#
ITE bitmapped consoles, see
.Xr \&amiga/ite 4
. It Ar ttyv0
pccons
. It Ar ttyC?
NS16550 (``com'') serial ports
. It Ar ttyS#
SA1110 serial port (hpcarm)
. It Ar ttyTX?
TX39 internal serial ports (hpcmips)
. It Ar ttyB?
DEC 3000 ZS8530 (``scc'') serial ports (alpha)
. It Ar ttyA#
Mfc serial ports (amiga)
. It Ar ttyB#
Msc serial ports (amiga)
. It Ar ttyC#
Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured.
. It Ar ttyA0
8530 Channel A (formerly ser02) (atari)
. It Ar ttyA1
8530 Channel B (formerly mdm02) (atari)
. It Ar ttyB0
UART on first 68901 (formerly mdm01) (atari)
. It Ar ixpcom
IXP12x0 COM ports
. It Ar epcom
EP93xx COM ports
. It Ar plcom
ARM PL01[01] serial ports
. It Ar wmcom
EPOC Windermere COM ports
. It Ar ttyM?
HP200/300 4 port serial mux interface (hp300)
. It Ar ttya
``ttya'' system console (luna68k)
. It Ar ttyb
Second system serial port (luna68k)
. It Ar tty#
Onboard serial ports (mvme68k) On the mvme147 these are: ttyZ1, ttyZ2 and ttyZ3. On the mvme167, and '177: ttyC1, ttyC2 and ttyC3. Note that tty[CZ]0 is grabbed by the console device so is not created by default, see
.Xr \&tty 4
. It Ar dc#
PMAX 4 channel serial interface (kbd, mouse, modem, printer)
. It Ar scc#
82530 serial interface (pmax)
. It Ar ttyZ#
Zilog 8530 (``zstty'') serial ports, see
.Xr \&zstty 4
. It Ar tty[abcd]
Built-in serial ports (sparc)
. It Ar tty#
Z88530 serial controllers (sparc64), see
.Xr \&tty 4
. It Ar ttyh#
SAB82532 serial controllers (sparc64), see
.Xr \&sparc64/sab 4
. It Ar tty[a-j]
Built-in serial ports (sun2, sun3)
. It Ar ttyC?
pccons (arc)
. It Ar dz#
UNIBUS DZ11 and DZ32 (vax), see
.Xr \&emips/dz 4 ,
.Xr \&vax/dz 4
. It Ar dh#
UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see
.Xr \&vax/dh 4
. It Ar dmf#
UNIBUS DMF32 (vax), see
.Xr \&vax/dmf 4
. It Ar dhu#
UNIBUS DHU11 (vax), see
.Xr \&vax/dhu 4
. It Ar dmz#
UNIBUS DMZ32 (vax), see
.Xr \&vax/dmz 4
. It Ar dl#
UNIBUS DL11 (vax), see
.Xr \&vax/dl 4
. It Ar xencons
Xen virtual console
. El
.It Terminal multiplexors :
. Bl -tag -width 0123456789 -compact
. It Ar dc#
4 channel serial interface (keyboard, mouse, modem, printer)
. It Ar dh#
UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see
.Xr \&vax/dh 4
. It Ar dhu#
UNIBUS DHU11, see
.Xr \&vax/dhu 4
. It Ar dl#
UNIBUS DL11, see
.Xr \&vax/dl 4
. It Ar dmf#
UNIBUS DMF32, see
.Xr \&vax/dmf 4
. It Ar dmz#
UNIBUS DMZ32, see
.Xr \&vax/dmz 4
. It Ar dz#
UNIBUS DZ11 and DZ32, see
.Xr \&emips/dz 4 ,
.Xr \&vax/dz 4
. It Ar scc#
82530 serial interface
. El
.It Call units :
. Bl -tag -width 0123456789 -compact
. It Ar dn#
UNIBUS DN11 and emulations (e.g. Able Quadracall), see
.Xr \&vax/dn 4
. El
.It Pseudo terminals :
. Bl -tag -width 0123456789 -compact
. It Ar ptm
Pty multiplexor device, and pts directory, see
.Xr \&ptm 4
. It Ar pty#
Set of 16 master and slave pseudo terminals, see
.Xr \&pty 4
. It Ar opty
First 16 ptys, to save inodes on install media
. It Ar ipty
First 2 ptys, for install media use only
. El
.It Printers :
. Bl -tag -width 0123456789 -compact
. It Ar arcpp#
Archimedes parallel port
. It Ar lpt#
Stock lp, see
.Xr \&lpt 4 ,
.Xr \&acorn32/lpt 4 ,
.Xr \&mvme68k/lpt 4 ,
.Xr \&x86/lpt 4
. It Ar lpa#
Interruptless lp
. It Ar par#
Amiga motherboard parallel port
. It Ar cpi#
Macintosh Nubus CSI parallel printer card, see
.Xr \&mac68k/cpi 4
. El
.It USB devices :
. Bl -tag -width 0123456789 -compact
. It Ar usb#
USB control devices, see
.Xr \&usb 4
. It Ar uhid#
USB generic HID devices, see
.Xr \&uhid 4
. It Ar ulpt#
USB printer devices, see
.Xr \&ulpt 4
. It Ar ugen#
USB generic devices, see
.Xr \&ugen 4
. It Ar uscanner#
USB scanners, see
.Xr \&uscanner 4
. It Ar ttyHS#
USB Option N.V. modems
. It Ar ttyU#
USB modems, see
.Xr \&ucom 4
. It Ar ttyY#
USB serial adapters
. El
.It Video devices :
. Bl -tag -width 0123456789 -compact
. It Ar bwtwo#
Monochromatic frame buffer, see
.Xr \&sparc/bwtwo 4 ,
.Xr \&sun2/bwtwo 4 ,
.Xr \&sun3/bwtwo 4
. It Ar cgtwo#
8-bit color frame buffer, see
.Xr \&sparc/cgtwo 4 ,
.Xr \&sun3/cgtwo 4
. It Ar cgthree#
8-bit color frame buffer, see
.Xr \&sparc/cgthree 4
. It Ar cgfour#
8-bit color frame buffer, see
.Xr \&sparc/cgfour 4 ,
.Xr \&sun3/cgfour 4
. It Ar cgsix#
Accelerated 8-bit color frame buffer, see
.Xr \&sparc/cgsix 4
. It Ar cgeight#
24-bit color frame buffer, see
.Xr \&sparc/cgeight 4
. It Ar etvme
Tseng et-compatible cards on VME (atari)
. It Ar ik#
UNIBUS interface to Ikonas frame buffer, see
.Xr \&vax/ik 4
. It Ar leo
Circad Leonardo VME-bus true color (atari)
. It Ar ps#
UNIBUS interface to Picture System 2, see
.Xr \&vax/ps 4
. It Ar qv#
QVSS (MicroVAX) display
. It Ar tcx#
Accelerated 8/24-bit color frame buffer, see
.Xr \&sparc/tcx 4
. El
.It Maple bus devices :
. Bl -tag -width 0123456789 -compact
. It Ar maple
Maple bus control devices, see
.Xr \&dreamcast/maple 4
. It Ar mlcd#
Maple bus LCD devices, see
.Xr \&dreamcast/mlcd 4
. It Ar mmem#
Maple bus storage devices, see
.Xr \&dreamcast/mmem 4
. El
.It IEEE1394 bus devices :
. Bl -tag -width 0123456789 -compact
. It Ar fw#
IEEE1394 bus generic node access devices
. It Ar fwmem#
IEEE1394 bus physical memory of the remote node access devices
. El
.It Special purpose devices :
. Bl -tag -width 0123456789 -compact
. It Ar ad#
UNIBUS interface to Data Translation A/D converter, see
.Xr \&vax/ad 4
. It Ar agp#
AGP GART devices, see
.Xr \&agp 4
. It Ar altq
ALTQ control interface, see
.Xr \&altq 4
. It Ar amr#
AMI MegaRaid control device, see
.Xr \&amr 4
. It Ar apm
Power management device, see
.Xr \&i386/apm 4
. It Ar audio#
Audio devices, see
.Xr \&audio 4
. It Ar bell#
OPM bell device (x68k)
. It Ar bktr
Brooktree 848/849/878/879 based TV cards, see
.Xr \&bktr 4
. It Ar bpf
Packet filter, see
.Xr \&bpf 4
. It Ar bthub
Bluetooth Device Hub control interface, see
.Xr \&bthub 4
. It Ar cfs#
Coda file system device
. It Ar ch#
SCSI media changer, see
.Xr \&ch 4
. It Ar cir#
Consumer IR, see
.Xr \&cir 4
. It Ar clockctl
Clock control for non root users, see
.Xr \&clockctl 4
. It Ar cpuctl
CPU control
. It Ar crypto
Hardware crypto access driver, see
.Xr \&crypto 4
. It Ar dmoverio
Hardware-assisted data movers, see
.Xr \&dmoverio 4
. It Ar dpt#
DPT/Adaptec EATA RAID management interface, see
.Xr \&dpt 4
. It Ar dpti#
DPT/Adaptec I2O RAID management interface, see
.Xr \&dpti 4
. It Ar drm#
Direct Rendering Manager interface, see
.Xr \&drm 4
. It Ar dtv#
Digital TV interface, see
.Xr \&dtv 4
. It Ar fb#
PMAX generic framebuffer pseudo-device
. It Ar fd
File descriptors
. It Ar gpiopps#
1PPS signals on GPIO pins, see
.Xr \&gpiopps 4
. It Ar grf#
Graphics frame buffer device, see
.Xr \&amiga/grf 4
. It Ar hdaudio#
High Definition audio control device, see
.Xr \&hdaudio 4
. It Ar hdmicec#
HDMI CEC devices
. It Ar hil
HP300 HIL input devices, see
.Xr \&hil 4
. It Ar icp
ICP-Vortex/Intel RAID control interface, see
.Xr \&icp 4
. It Ar iic#
IIC bus device, see
.Xr \&iic 4
. It Ar io
X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see
.Xr \&hppa/io 4 ,
.Xr \&i386/io 4
. It Ar iop#
I2O IOP control interface, see
.Xr \&iop 4
. It Ar ipmi#
OpenIPMI compatible interface, see
.Xr \&ipmi 4
. It Ar ipl
IP Filter
. It Ar irframe#
IrDA physical frame, see
.Xr \&irframe 4
. It Ar ite#
Terminal emulator interface to HP300 graphics devices, see
.Xr \&amiga/ite 4
. It Ar joy#
Joystick device, see
.Xr \&joy 4
. It Ar kttcp
Kernel ttcp helper device, see
.Xr \&kttcp 4
. It Ar lockstat
Kernel locking statistics
. It Ar magma#
Magma multiport serial/parallel cards, see
.Xr \&sparc/magma 4
. It Ar midi#
MIDI, see
.Xr \&midi 4
. It Ar mfi#
LSI MegaRAID/MegaSAS control interface, see
.Xr \&mfi 4
. It Ar mlx#
Mylex DAC960 control interface, see
.Xr \&mlx 4
. It Ar mly#
Mylex AcceleRAID/eXtremeRAID control interface, see
.Xr \&mly 4
. It Ar np#
UNIBUS Ethernet co-processor interface, for downloading., see
.Xr \&vax/np 4
. It Ar npf
NPF packet filter
. It Ar nsmb#
SMB requester, see
.Xr \&nsmb 4
. It Ar nvme#
Non-Volatile Memory Host Controller Interface device driver, see
.Xr \&nvme 4
. It Ar nvme#ns*
Non-Volatile Memory namespace
. It Ar nvmm
NetBSD Virtual Machine Monitor, see
.Xr \&nvmm 4
. It Ar openfirm
OpenFirmware accessor
. It Ar pad#
Pseudo-audio device driver, see
.Xr \&pad 4
. It Ar pci#
PCI bus access devices, see
.Xr \&pci 4
. It Ar pf
PF packet filter
. It Ar putter
Pass-to-Userspace Transporter
. It Ar px#
PixelStamp Xserver access, see
.Xr \&px 4
. It Ar qemufwcfg#
QEMU Firmware Configuration, see
.Xr \&qemufwcfg 4
. It Ar radio#
Radio devices, see
.Xr \&radio 4
. It Ar random
Random number generator, see
.Xr \&rnd 4
. It Ar rtc#
RealTimeClock, see
.Xr \&atari/rtc 4 ,
.Xr \&evbppc/rtc 4 ,
.Xr \&hp300/rtc 4
. It Ar scsibus#
SCSI busses, see
.Xr \&scsi 4
. It Ar se#
SCSI Ethernet, see
.Xr \&se 4
. It Ar ses#
SES/SAF-TE SCSI Devices, see
.Xr \&ses 4
. It Ar speaker
PC speaker, see
.Xr \&speaker 4
. It Ar spi#
SPI bus device, see
.Xr \&spi 4
. It Ar sram
Battery backuped memory (x68k)
. It Ar srt#
Source-address based routing, see
.Xr \&srt 4
. It Ar ss#
SCSI scanner, see
.Xr \&ss 4
. It Ar stic#
PixelStamp interface chip
. It Ar sysmon
System Monitoring hardware, see
.Xr \&envsys 4
. It Ar tap#
Virtual Ethernet device, see
.Xr \&tap 4
. It Ar tprof
Task profiler, see
.Xr \&tprof 4
. It Ar tun#
Network tunnel driver, see
.Xr \&tun 4
. It Ar twa
3ware Apache control interface, see
.Xr \&twa 4
. It Ar twe
3ware Escalade control interface, see
.Xr \&twe 4
. It Ar uk#
Unknown SCSI device, see
.Xr \&uk 4
. It Ar veriexec
Veriexec fingerprint loader, see
.Xr \&veriexec 4
. It Ar vhci
Virtual host controller interface
. It Ar video#
Video capture devices, see
.Xr \&video 4
. It Ar view#
Generic interface to graphic displays (Amiga)
. It Ar wsfont#
Console font control, see
.Xr \&wsfont 4
. It Ar wsmux#
wscons event multiplexor, see
.Xr \&wsmux 4
. It Ar xenevt
Xen event interface
. El
.It iSCSI communication devices
. Bl -tag -width 0123456789 -compact
. It Ar iscsi#
ISCSI driver and /sbin/iscsid communication
. El
.It Trusted Computing devices
. Bl -tag -width 0123456789 -compact
. It Ar tpm
Trusted Platform Module, see
.Xr \&tpm 4
. El
.It Debugging and tracing
. Bl -tag -width 0123456789 -compact
. It Ar dtrace
Dynamic tracing framework
. El
.El
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm :
.Pp
.Bl -tag -width indent
.It Ev MAKEDEV_AS_LIBRARY
If this is set, then
.Nm
will define several shell functions and then return,
ignoring all its command line options and arguments.
This is used to enable
.Xr MAKEDEV.local 8
to use the shell functions defined in
.Nm .
.El
.Sh FILES
.Bl -tag -width "/dev/MAKEDEV.local" -compact
.It Pa /dev
special device files directory
.It Pa /dev/MAKEDEV
script described in this man page
.It Pa /dev/MAKEDEV.local
script for site-specific devices
.El
.Sh DIAGNOSTICS
If the script reports an error that is difficult to understand,
you can get more debugging output by using
.Dl Ic sh Fl x Ar MAKEDEV Ar argument .
.Sh SEE ALSO
.Xr config 1 ,
.Xr pax 1 ,
.Xr intro 4 ,
.Xr diskless 8 ,
.Xr init 8 ,
.Xr MAKEDEV.local 8 ,
.Xr mknod 8 ,
.Xr mount_mfs 8 ,
.Xr mount_tmpfs 8 ,
.Xr mtree 8
.Sh HISTORY
The
.Nm
command appeared in
.Bx 4.2 .
The
.Fl f ,
.Fl m ,
and
.Fl s
options were added in
.Nx 2.0 .
The
.Fl p ,
.Fl t ,
and
.Fl M
options were added in
.Nx 5.0 .
The ability to be used as a function library was added in
.Nx 5.0 .
.Sh BUGS
The
.Fl f
option is not compatible with the use of
.Xr mtree 8
or
.Xr pax 1 .
.Sh NOTES
Not all devices listed in this manpage are supported on all platforms.
.Pp
This man page is generated automatically from the same sources
as
.Pa /dev/MAKEDEV ,
in which the device files are not always sorted, which may result
in an unusual (non-alphabetical) order.
.Pp
In order to allow a diskless
.Nx
client to obtain its
.Pa /dev
directory from a file server running a foreign operating system,
one of the following techniques may be useful to populate
a directory of device nodes on the foreign server:
.Bl -bullet
.It
If the foreign server is sufficiently similar to
.Nx ,
run
.Nm
in an appropriate directory of the foreign server,
using the
.Fl m
flag to refer to a script that converts from command line
arguments that would be usable with the
.Nx
.Xr mknod 8
command to the equivalent commands for the foreign server.
.It
Run
.Nm
with the
.Fl s
flag to generate an
.Xr mtree 8
specification file; this can be done on any host with a
POSIX-compliant shell and a few widely-available utilities.
Use the
.Xr pax 1
command with the
.Fl w Fl M
flags to convert the
.Xr mtree 8
specification file into an archive
in a format that supports device nodes
(such as
.Ar ustar
format);
this can be done on a
.Nx
host, or can be done in a cross-build environment using
.Sy TOOLDIR Ns Pa /bin/nbpax .
Finally, use appropriate tools on the foreign server
to unpack the archive and create the device nodes.
.El