__dfl_fpga_c...nd_port_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __dfl_fpga_cdev_find_port_data(9) β€” like, the whole vibe

okay bestie, so we're deep in the Kernel API Manual today β€” this one's a kernel function page, no cap, and it's honestly lowkey iconic how much it does with so few words. sit down, grab a strawberry πŸ“, let's go.


✨ NAME ✨

__dfl_fpga_cdev_find_port_data β€” finds a port under a given container device. that's the whole job. she's a finder. a seeker. a "where's my port" specialist πŸ•΅οΈβ€β™€οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dfl_feature_dev_data * __dfl_fpga_cdev_find_port_data (struct
       dfl_fpga_cdev *cdev , void *data , int (*match)(struct
       dfl_feature_dev_data *, void *) );

yes the signature is kind of a mouthful, we don't make the rules πŸ’€ just copy it exactly and you'll be fine.


πŸŽ€ ARGUMENTS πŸŽ€

  • cdev β€” the container device. she's the main character energy of this whole operation, the one everything's living inside of πŸ‘‘
  • data β€” literally just data, bestie. it gets passed straight through to the match function, no questions asked.
  • match β€” the match function, and honestly she's the picky one 🧚 it's the thing used to find a specific port out of the port device list, so like… it decides who's the one.

🌸 DESCRIPTION 🌸

so basically: this finds a port device under a container device. that's it, that's the function πŸ’–

⚠️ but listen β€” this function needs to be invoked with the lock held. not "should", not "maybe", needs. do not come for this function without your lock, i'm serious πŸ™ˆ

πŸ’œ RETURN πŸ’œ

  • a pointer to the port's platform device if it worked out ✨ slay
  • NULL otherwise 😭 it's giving "no thoughts, no port"

πŸ”₯ NOTE πŸ”₯

okay this is important, don't skip it:

you will need to drop the device reference with put_device after use. fr fr, if you forget, that reference just stays out there living its life and that's not the vibe πŸ’€ clean up after yourself, bestie 🫢

🌈 SEE ALSO 🌈

the whole friend group, in order, no one left out:

like i said. the whole group chat 🫢


and that's the page, bestie πŸŽ€ sign-off time: this one lives in ./drivers/fpga, dated October 2026, and it's filed under the __dfl_fpga_c...nd_port_data(9) manual page ✨ go forth and find your ports, hold that lock, and put_device when you're done πŸ’…πŸ’–

πŸ“¦ where this page comes from