PMDAINTERFACEMOVED(3)
π PMDAINTERFACEMOVED(3) π
okay so bestie, welcome to the Library Functions Manual section of your life π this one is short, sweet, and honestly kind of a sleeper hit β it's about putting your pmdaInterface structure back together after you've β¨relocatedβ¨ it.
πΈ NAME πΈ
pmdaInterfaceMoved β reset internal state of a pmdaInterface structure
β¨ C SYNOPSIS β¨
#include <pcp/pmapi.h>
#include <pcp/pmda.h>
void pmdaInterfaceMoved(pmdaInterface *dispatch);
cc ... -lpcp_pmda -lpcp
like yes, that's the whole signature, she's a one-liner and she ate π
π¦ DESCRIPTION π¦
so here's the situation. you already called either pmdaDaemon(3) or pmdaDSO(3) to initialize your pmdaInterface structure. iconic. BUT β and this is the plot twist π β if the caller then needs to relocate or move that structure for literally any reason, you have to call pmdaInterfaceMoved with the new base address of the pmdaInterface routine, and that new address is what you hand over as dispatch.
what does she do for you? pmdaInterfaceMoved will re-establish the internal integrity of the pmdaInterface structure at the new location. and the timing matters, bestie β you gotta do this before any other routine in libpcp_pmda is called. no cap. do it first or things get weird π
π CAVEAT π
The PMDA must be using PMDA_INTERFACE_2 or later.
like, non-negotiable. older interface versions are not invited to this party π«
π SEE ALSO π
and that's the whole vibe, bestie β this page came to you from Performance Co-Pilot (PCP), filed under PMDAINTERFACEMOVED(3). go move that struct and slay π«Άβ¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp-pmda3-dev 7.1.1-1
- ubuntu stonking: libpcp-pmda3-dev 7.2.1-2build1
- Copyright (c) 2014 Ken McDonell, 2014. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms