STRUCT FRAMER_OPS(9)
π struct framer_ops(9) π
okay so welcome to the Kernel API Manual, bestie π«Ά. This is the page for struct framer_ops(9) β literally the set of function pointers for performing framer operations. It's giving "contract for framer drivers" energy, and we're gonna walk through it together. No cap.
β¨ NAME β¨
struct framer_ops β set of function pointers for performing framer operations. That's the whole name, periodt.
π SYNOPSIS π
ok so here's the struct in all its glory, line wraps and all, don't come for me:
struct framer_ops {
int (*init)(struct framer *framer);
void (*exit)(struct framer *framer);
int (*power_on)(struct framer *framer);
int (*power_off)(struct framer *framer);
int (*get_status)(struct framer *framer, struct framer_status
*status);
int (*set_config)(struct framer *framer, const struct framer_config
*config);
int (*get_config)(struct framer *framer, struct framer_config
*config);
u32 flags;
struct module *owner;
};
π Members π
initβ operation to be performed for initializing the framer.exitβ operation to be performed while exiting.power_onβ powering on the framer.power_offβ powering off the framer.get_statusβ Optional. Used to get the framer status.framer_initmust have been called on the framer.
Returns: 0 if successful, an negative error code otherwise.
set_configβ Optional. Used to set the framer configuration.framer_initmust have been called on the framer.
Returns: 0 if successful, an negative error code otherwise.
get_configβ Optional. Used to get the framer configuration.framer_initmust have been called on the framer.
Returns: 0 if successful, an negative error code otherwise.
flagsβ OR-ed flags (FRAMER_FLAG_*) to ask for core functionality.FRAMER_FLAG_POLL_STATUS: Ask the core to perform a polling to get the framer status and notify consumers on change. The framer should callframer_notify_status_changewhen it detects a status change. This is usually done using interrupts. If the framer cannot detect this change, it can ask the core for a status polling. The core will callget_statusperiodically and, on change detected, it will notify the consumer.the get_status
bestie, the page literally trails off there with the get_status π we keep it because details are sacred.
ownerβ the module owner containing the ops.
π SEE ALSO π
- Kernel file
./include/linux/framer/framer-provider.h struct framer_provider(9)
that's the whole page, bestie π source path: ./include/linux/framer; date: October 2026. 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