STRUCT FRAMER_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_init must 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_init must 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_init must 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 call framer_notify_status_change when 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 call get_status periodically 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