mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
23 lines
840 B
Text
23 lines
840 B
Text
# Example /etc/devfs.conf entries for the Chapter 8 myfirst driver.
|
|
#
|
|
# devfs.conf applies each line once, when a matching node appears
|
|
# under /dev. See devfs.conf(5) for the full syntax. To apply changes
|
|
# on a running system:
|
|
#
|
|
# sudo service devfs restart
|
|
#
|
|
# These entries make sense against the Chapter 7 baseline driver that
|
|
# creates /dev/myfirst0 with mode 0600 under root:wheel. They turn that
|
|
# node into a root:operator 0660 node and add a /dev/myfirst-primary
|
|
# symlink pointing at it.
|
|
|
|
own myfirst0 root:operator
|
|
perm myfirst0 0660
|
|
link myfirst0 myfirst-primary
|
|
|
|
# If you are using the Chapter 8 structured-name driver that creates
|
|
# /dev/myfirst/0, use these entries instead:
|
|
|
|
# own myfirst/0 root:operator
|
|
# perm myfirst/0 0660
|
|
# link myfirst/0 myfirst-primary
|