__afu_port_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __afu_port_disable β€” kernel API manual, section 9 πŸŽ€

okay so bestie, we're deep in the kernel API manual (section 9, the fun one) and today's main character is __afu_port_disable. it's giving "put that port in timeout" energy and honestly? iconic. let's get into it ✨


🌸 NAME 🌸

__afu_port_disable β€” literally just disable a port by holding it in reset. that's the whole vibe. no cap. πŸ’…


✨ SYNOPSIS ✨

int __afu_port_disable (struct dfl_feature_dev_data *fdata );

it returns an int, it takes one argument, and yes bestie the spacing in the original is exactly like that β€” we don't gatekeep, we reproduce. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fdata β€” the port feature dev data. that's your struct dfl_feature_dev_data * right there, the port-feature-flavored one. she's the one getting reset. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so what does it actually do? it disables the port by setting the port soft reset bit, which puts the port into reset. that's it. that's the function. soft reset bit goes up, port goes into reset, bye. 🌈

⚠️ okay this is the important part, do not skip: the caller needs to hold lock for protection. the function itself is not out here doing the locking for you. you gotta bring your own lock, fr fr. no lock, no vibe check, chaos ensues. πŸ”’

πŸ‘‘ SEE ALSO πŸ‘‘

  • the kernel file ./drivers/fpga/dfl-afu-main.c β€” go read the source, it's right there, iykyk 🧚
  • __afu_port_enable(9) β€” the other half of the equation, the "actually turn it back on" queen πŸ’œ

and that's the page!! 🌸 written down in ./drivers/fpga, dated October 2026, and the source/version line at the bottom is just the manual footer reminding you that this is __afu_port_disable(9) talking. go forth, hold your lock, slay your resets. periodt. πŸ’€πŸŽ€β­

πŸ“¦ where this page comes from