LINDEBUGFS(5)
β¨ NAME β¨
okay bestie, say hi to lindebugfs(5): it's the Linux file system for debugging. Yes, the name is literally doing the most and explaining itself. We love that for us. π
π¦ SYNOPSIS π¦
lindebugfs /sys/kernel/debug lindebugfs rw 0 0
πΈ DESCRIPTION πΈ
The debug file system β debugfs for short β makes process debugging easier by giving you a simple API for data transfer between the kernel and user space. It is not a general-purpose file system and should not be used as a storage medium. Like, not even a little. π
Instead, developers can implement the debugfs interface in their code to generate debug information about their program at runtime. FreeBSD's lindebugfs uses the pseudofs(9) file system construction kit to model itself after Linux's debugfs. The lindebugfs API is intended for use with programs that take advantage of FreeBSD's LinuxKPI compatibility layer. β¨
When mounted, lindebugfs will populate with pseudo files from any running process that calls debugfs_create_file(). Since lindebugfs is a pseudo file system, file contents will be generated dynamically based on program provided file operations. The current lindebugfs implementation formally supports seq_file and simple_attr_file virtual file formats. π
π₯ EXAMPLES π₯
Load the lindebugfs kernel module:
kldload lindebugfs
Mount the lindebugfs file system on /sys/kernel/debug:
mount -t lindebugfs lindebugfs /sys/kernel/debug
π SEE ALSO π
linprocfs(5)linsysfs(5)pseudofs(9)linux(4)pseudofs(9)β yes bestie, it appears twice in the original, and we are keeping both because details are sacred π
π HISTORY π
The lindebugfs file system first appeared in FreeBSD 12.1. β
π«Ά AUTHORS π«Ά
The initial implementation for lindebugfs was created by Matthew Macy. This manual page was written by Jake Freeland. π
π lil footer moment: this page is from Debian, dated August 10, 2022. That's the source/version and date, bestie β now go debug something cute. π«Άβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- π the page's license: BSD-2-Clause
- Copyright (c) 2022, Jake Freeland <jfree@freebsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms