STRUCT CONT_REC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cont_rec(9) β€” like, the continuous recording data structure bestie πŸŽ€

Okay so this is a page from the Kernel API Manual, and we're about to get so cozy with one little struct. Come on, iykyk ✨


🌸 NAME 🌸

struct cont_rec β€” the continuous recording data structure. That's it, that's the whole vibe. She holds the state for continuous recording, no cap πŸ’–


✨ SYNOPSIS ✨

Here's her whole lewk, verbatim, don't touch a single character:

struct cont_rec {
    u32 prev_wr_ptr;
    u32 prev_wrap_cnt;
    u8 state;
    struct mutex mutex;
 };

Literally four members and she's iconic for it πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • prev_wr_ptr β€” the last address that was read in the monitor_data debugfs file. Like a little bookmark πŸŽ€, but for read positions.
  • prev_wrap_cnt β€” the wrap count that was used during the last read in the monitor_data debugfs file. She's keeping track of how many times we've looped around the ring, ngl πŸŒ€
  • state β€” the state of the monitor_data debugfs file, exactly as described in the iwl_fw_mon_dbgfs_state enum. Vibe check, but as an enum πŸ’…
  • mutex β€” locked while reading from the monitor_data debugfs file. Yes bestie, we're doing proper locking, no chaotic concurrent reads in this house πŸ™ˆπŸ”’

🌈 SEE ALSO 🌈

The kernel file lives right here for you to go snooping in:

./drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/internal.h

And here is the whole extended friend group β€” every single one, because we do not leave anyone out at this table 🫢:

  • struct iwl_rx_mem_buffer(9)
  • struct iwl_rx_transfer_desc(9)
  • struct iwl_rx_completion_desc(9)
  • struct iwl_rx_completion_desc_bz(9)
  • struct iwl_rxq(9)
  • struct iwl_rb_allocator(9)
  • iwl_get_closed_rb_stts(9)
  • enum iwl_fw_mon_dbgfs_state(9)
  • enum iwl_shared_irq_flags(9)
  • enum iwl_image_response_code(9)
  • enum iwl_pcie_imr_status(9)
  • struct iwl_txq(9)
  • struct iwl_pcie_txqs(9)
  • struct iwl_trans_pcie(9)
  • iwl_txq_inc_wrap(9)
  • iwl_txq_dec_wrap(9)

Fr fr, this page is sourced from ./drivers/net/wireless/intel/i... and dated October 2026 β€” so go read the neighbors too, bestie, they're all in the same friend group πŸ’€βœ¨

periodt. πŸ’– struct cont_rec(9) out. πŸŽ€

πŸ“¦ where this page comes from