STRUCT CROS_EC_DEBUGFS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the dentry for 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 β€” a notifier_block that 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