linux - which one among none/nodev/debugfs shosuld I use to mount debugfs? -


i trying enable debug in ath9k kernel driver module.

as debug uses debugfs, need mount debugfs. people , internet suggesting little bit differnt mount commnad:

# (note) mount usage: mount -t type dev dir mount -t debugfs debugfs /sys/kernel/debug mount -t debugfs none /sys/kernel/debug mount -t debugfs nodev /sys/kernel/debug 

i wondering whether of 3 commnads have same effect , result. if so, role dev in middle of command do?

currently, think debugfs mounted on system typing mount:

/dev/sda1 on / type ext4 (rw,errors=remount-ro) ... none on /sys/kernel/debug type debugfs (rw) ... tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) 

dev in middle of command device (eg: /dev/sda1) in case of real filesystems since virtualized filesystem in ram necessary specify type , kernel knows next.

according official documentation correct way this:

mount -t debugfs none /sys/kernel/debug

the details here: https://www.kernel.org/doc/documentation/filesystems/debugfs.txt


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -