dso__data_get_fd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dso__data_get_fd β€” like, the Kernel API Manual page, but make it make sense πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for dso__data_get_fd β€” it's giving "tiny function, big responsibility" energy, and honestly? we're obsessed. let's get into it ✨


🌸 NAME 🌸

dso__data_get_fd β€” get the dso's data file descriptor πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dso__data_get_fd (struct dso *dso , struct machine *machine , int
*fd );

that's the whole signature, no cap β€” copy it exactly, spaces and all, she's particular πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dso β€” the dso object. like, the actual star of the show 🌟
  • machine β€” the machine object. yes she's here too, she matters 🫢
  • fd β€” um. the manpage literally says -- undescribed -- and honestly? πŸ’€ iconic of the original authors to leave us hanging like that. that's the whole description. no notes.

πŸ”₯ DESCRIPTION πŸ”₯

so dso__data_get_fd is the external interface you use to find the dso's file, open it, and get the file descriptor back. literally that's the job β€” find, open, hand over the fd. main character behavior fr fr ✨

⚠️ okay this part is important, don't scroll past it: if it returns a non-negative value, you must pair the call with dso__data_put_fd. like, always. it's a two-part harmony, you can't just take the fd and ghost it 😭

🌈 SEE ALSO 🌈

go read all of them, iykyk πŸ‘‘


and that's the page!! 🧚 sourced from ./tools/perf/util, dated October 2026 β€” big slay, go pair your dso__data_put_fd calls and stay hydrated bestie πŸ’œπŸ¦‹

πŸ“¦ where this page comes from