STRUCT CROS_EC_DEBUGFS(9)
β¨ NAME β¨
struct cros_ec_debugfs β literally all the EC debugging info, bestie π
okay so real quick, this is a page from the Kernel API Manual, section 9 β yes, the struct cros_ec_debugfs(9) girlies know exactly what's up π
πΈ SYNOPSIS πΈ
struct cros_ec_debugfs {
struct cros_ec_dev *ec;
struct dentry *dir;
struct circ_buf log_buffer;
struct cros_ec_command *read_msg;
struct mutex log_mutex;
struct delayed_work log_poll_work;
struct debugfs_blob_wrapper panicinfo_blob;
struct notifier_block notifier_panic;
};
π¦ Members π¦
she's got a whole lil cast of characters, let's meet them π«Ά
ecβ the EC device that this debugfs information actually belongs to. main character energy, honestly πdirβ thedentryfor the debugfs files. it's giving "where the files live" πlog_bufferβ a circular buffer holding onto console log information πread_msgβ a preallocated EC command and its buffer, ready to read the console log. prepared, organized, iconic β¨log_mutexβ a mutex whose whole job is protecting that circular buffer. don't touch it without her π§log_poll_workβ a recurring task that polls the EC for new console log data. she just keeps showing up, no cap πpanicinfo_blobβ the panicinfo debugfs blob π«§notifier_panicβ anotifier_blockthat lets the kernel flush the buffered log when the EC panics. lowkey important, highkey a lifesaver π
π SEE ALSO π
Kernel file ./drivers/platform/chrome/cros_ec_debugfs.c β go read her, iykyk π
ngl bestie, if you're digging into EC debugging, this struct is your whole group chat. screenshot it, save it, obsess ππ
okay that's the page!! brought to you by ./drivers/platform/chrome, dated October 2026, and filed under struct cros_ec_debugfs(9) β mwah, slay, periodt π§β
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms