fman_port_cf...efix_content(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fman_port_cfg_buf_prefix_content(9) πŸ’…

okay so this is a page from the Kernel API Manual, and bestie, the function name is a mouthful: fman_port_cfg_buf_prefix_content. say it with me now. no cap, it's giving "someone fell asleep on the keyboard" energy, but we're gonna get through it together 🫢


✨ NAME ✨

fman_port_cfg_buf_prefix_content

that's literally it, that's the whole NAME section β€” no one-liner blurb, no little dash of description. iconic minimalism honestly πŸ’…


🌸 SYNOPSIS 🌸

int fman_port_cfg_buf_prefix_content (struct fman_port *port , struct
       fman_buffer_prefix_content * buffer_prefix_content );

so she takes a port and she takes a buffer_prefix_content, and she returns an int. simple as that. slay.


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” a pointer to a FM Port module. a pointer, bestie. handle with care πŸ™ˆ
  • buffer_prefix_content β€” a structure of parameters describing the structure of the buffer. yes, structure of the structure. we love a recursive vibe check ✨

okay so here's the deets on this one, and I'm gonna be real with you, the original wording here is a little feral, so stay with me:

Out parameter: Start margin β€” offset of data from start of external buffer. she defines the structure, size and content of the application buffer.

about the prefix, in Tx ports: if 'pass_prs_result', the application should set a value to their offsets in the prefix of the FM will save the first (in this order), to the application buffer, and to offset. 😭 yeah I know. that's what it says. I'm not gonna pretend it's a clean sentence, but every word of it matters so there it is, untouched.

calling this routine changes the buffer margins definitions in the internal driver data base from its default configuration:

  • Data size: [DEFAULT_PORT_BUFFER_PREFIX_CONTENT_PRIV_DATA_SIZE]
  • Pass Parser result: [DEFAULT_PORT_BUFFER_PREFIX_CONTENT_PASS_PRS_RESULT]
  • Pass timestamp: [DEFAULT_PORT_BUFFER_PREFIX_CONTENT_PASS_TIME_STAMP]

and bestie β€” this one may be used for all ports πŸ‘‘ all of them. every single one.


πŸ¦‹ DESCRIPTION πŸ¦‹

⚠️ timing check, queen: this is allowed only following fman_port_config and before fman_port_init.

so if you've already called fman_port_init, you are LOWKEY too late and it's not gonna happen. order matters. main character energy requires a schedule πŸ’€


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • Error code otherwise 😭

🌈 SEE ALSO 🌈


and that's the whole page, bestie πŸ’– this one lives in ./drivers/net/ethernet/freesca... and the version stamp is dated October 2026, so like... future vibes only 🌸⭐ go forth and configure your buffer prefix content with confidence, you got this πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from