ENUM XSDFEC_STATE(9)
π enum xsdfec_state(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this lil page is all about enum xsdfec_state and honestly? it's giving "tiny enum, big feelings" π
πΈ NAME πΈ
enum xsdfec_state β State. that's it. that's the whole name. short, sweet, iconic. π
β¨ SYNOPSIS β¨
enum xsdfec_state {
XSDFEC_INIT ,
XSDFEC_STARTED ,
XSDFEC_STOPPED ,
XSDFEC_NEEDS_RESET ,
XSDFEC_PL_RECONFIGURE
};
no cap, that's the whole thing β five constants, one vibe. π¦
π CONSTANTS π
XSDFEC_INITβ Driver is initialized. fresh out the box, first-day-of-school energy πΈXSDFEC_STARTEDβ Driver is started. up and running, main character mode activated πXSDFEC_STOPPEDβ Driver is stopped. napping. do not disturb π€XSDFEC_NEEDS_RESETβ Driver needs to be reset. it's going through something, give it a minute πXSDFEC_PL_RECONFIGUREβ Programmable Logic needs to be recofigured. (yes, "recofigured" β that's literally how it's spelled in the source, I'm not touching it, we respect the original π) the PL needs a glow-up reconfiguration, periodt β¨
π DESCRIPTION π
This enum is used to indicate the state of the driver. literally that's its whole job β one look at the value and you know exactly what chapter of the story the driver's in. no digging required π«Ά
π SEE ALSO π
Kernel file ./include/uapi/misc/xilinx_sdfec.h β go read it, it's the source of truth bestie π
the enums, all together now:
enum xsdfec_code(9),enum xsdfec_order(9),enum xsdfec_turbo_alg(9),enum xsdfec_axis_width(9),enum xsdfec_axis_word_include(9)
the structs, looking cute:
struct xsdfec_turbo(9),struct xsdfec_ldpc_params(9),struct xsdfec_status(9),struct xsdfec_irq(9),struct xsdfec_config(9),struct xsdfec_stats(9),struct xsdfec_ldpc_param_table_sizes(9)
and the whole macro/ioctl friend group π₯:
XSDFEC_START_DEV(9),XSDFEC_STOP_DEV(9),XSDFEC_GET_STATUS(9),XSDFEC_SET_IRQ(9),XSDFEC_SET_TURBO(9),XSDFEC_ADD_LDPC_CODE_PARAMS(9),XSDFEC_GET_CONFIG(9),XSDFEC_GET_TURBO(9),XSDFEC_SET_ORDER(9),XSDFEC_SET_BYPASS(9),XSDFEC_IS_ACTIVE(9),XSDFEC_CLEAR_STATS(9),XSDFEC_GET_STATS(9),XSDFEC_SET_DEFAULT_CONFIG(9)
ok that's the page!! sourced straight from ./include/uapi/misc π
dated October 2026 β¨ ty for reading bestie, go forth and check your driver's state, mwah πππΈ
π¦ 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