LIBPFM(3)
π LIBPFM(3) π
omg bestie you made it to the very last page of the Linux Programmer's Manual arc, and it's literally the goodbye episode π This is LIBPFM(3), and today's main character is pfm_terminate β the little function that closes the tab on your perfmon era. π
β¨ NAME β¨
pfm_terminate β free resources used by library π§
no cap, that's the whole job description and she does it flawlessly.
πΈ SYNOPSIS πΈ
#include <perfmon/pfmlib.h>
int pfm_terminate(void);
yes bestie, that's the exact signature, copy it character for character, do NOT freestyle it π
π¦ DESCRIPTION π¦
Okay so listen. π
This is the last function that a program must call β like, must must, not optional must β to free all the resources allocated by the library, e.g., memory. π Think of it as the cleanup crew that shows up after the party and takes the balloons down. If you skip it, the balloons just stay there. Forever. Not cute. π
β οΈ Vibe check, important: the function is not reentrant. The caller must ensure only one thread at a time is executing it. So no letting two threads yank the same cord at the same time, that's giving chaos energy and we do not stan. π«Ά
β RETURN β
There is no return value to this function. π
She says nothing. She simply leaves. Iconic behavior, honestly. Periodt. β¨
π AUTHOR π
Stephane Eranian <eranian@gmail.com> π
and that's the whole page bestie, you ate that, no crumbs left π
September, 2009 β LIBPFM(3) π
signing off from the Linux Programmer's Manual, remember to call pfm_terminate last, love u, bye πβ¨
π¦ where this page comes from
- arch rolling: libpfm 4.14.1-1 Β· MIT
- centos-stream 10: libpfm-devel 4.14.1-1.el10 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- centos-stream 9: libpfm-devel 4.14.1-1.el9 Β· MIT
- debian bookworm: libpfm4-dev 4.13.0-1 Β· MIT
- debian trixie: libpfm4-dev 4.13.0+git99-gc5587f9-1 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-16.fc43 Β· MIT
- fedora 43: libpfm-devel 4.13.0-20.fc43
- fedora 43: libpfm-devel 4.13.0-20.fc43
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 43: libpfm-devel 4.14.1-2.fc43 Β· MIT
- fedora 44: libpfm-devel 4.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-19.fc44 Β· MIT
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.13.0-20.fc44
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- fedora 44: libpfm-devel 4.14.1-2.fc44 Β· MIT
- nixos 26.05: libpfm 4.13.0
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: libpfm 4.14.1
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.1 Β· MIT
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.1 Β· MIT
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.1 Β· MIT
- opensuse-leap 16.0: libpfm-devel 4.13.0-160000.3.1 Β· MIT
- ubuntu jammy: libpfm4-dev 4.11.1+git32-gd0b85fb-1 Β· BSD-like
- ubuntu jammy: libpfm4-dev 4.11.1+git32-gd0b85fb-1ubuntu0.1 Β· BSD-like
- ubuntu noble: libpfm4-dev 4.13.0+git32-g0d4ed0e-1 Β· MIT
- ubuntu noble: libpfm4-dev 4.13.0+git32-g0d4ed0e-1ubuntu0.1 Β· MIT
- ubuntu questing: libpfm4-dev 4.13.0+git99-gc5587f9-1
- ubuntu resolute: libpfm4-dev 4.13.0+git106-g3e4031b-1 Β· MIT
- ubuntu resolute: libpfm4-dev 4.13.0+git106-g3e4031b-1ubuntu0.1 Β· MIT
- ubuntu stonking: libpfm4-dev 4.13.0+git106-g3e4031b-1ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms