STRUCT CONT_REC(9)
π 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 themonitor_datadebugfs file. Like a little bookmark π, but for read positions.prev_wrap_cntβ the wrap count that was used during the last read in themonitor_datadebugfs file. She's keeping track of how many times we've looped around the ring, ngl πstateβ the state of themonitor_datadebugfs file, exactly as described in theiwl_fw_mon_dbgfs_stateenum. Vibe check, but as an enum πmutexβ locked while reading from themonitor_datadebugfs 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
- 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