PMC_INIT(3)
π NAME
pmc_init β initialize library β¨
Okay bestie, you're on the PMC_INIT(3) page, and this is the little manual for pmc_init β the function with main-character energy that wakes up the whole PMC library. It's giving βinitialize library,β no cap π
.
π LIBRARY
Performance Counters Library (libpmc, -lpmc) β yes, that's the one, periodt.
β¨ SYNOPSIS
#include <pmc.h>
int
pmc_init(void);
πΈ DESCRIPTION
Function pmc_init() initializes the PMC library. This function must be called before any of the other functions in the library. Not βwhenever,β not βafter a lil snackβ β first, bestie π«Ά.
Real talk: pmc_init() is the vibe check. Call it before anything else in the library, or the whole thing is gonna be awkward.
π«Ά RETURN VALUES
The pmc_init() function returns the value 0 if successful. Otherwise, the value -1 is returned, and the global variable errno is set to indicate the error. So 0 is the slay result; -1 means check errno for the tea π.
π ERRORS
A call to pmc_init() may fail with the following errors:
[ENOENT]β Thehwpmc(4)module was not found in the kernel.[EPROGMISMATCH]β The library's version number did not match that expected byhwpmc(4).[ENXIO]β PMC hardware on this system is unsupported.
π₯ SEE ALSO
Signed with Debian sparkle by the PMC_INIT(3) page, dated November 24, 2007 ππβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2007 Joseph Koshy. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms