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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -