hwlocality..._reporting(3)

This is the Library Functions Manual page for hwlocality..._reporting(3), aka the one about API error reporting β€” and bestie, it’s short but important. πŸ’…

πŸ’– NAME πŸ’–

hwlocality_api_error_reporting β€” Error reporting in the API ✨

✨ SYNOPSIS ✨

🌸 Detailed Description 🌸

Okay so most functions in the hwloc API return an integer value. Unless the docs for a specific function say otherwise, they return 0 on success and -1 on error. Functions that return a pointer type return NULL on error. No cap. 🫢

errno will be set to a meaningful value whenever possible. That includes the usual EINVAL when invalid function parameters are passed or ENOMEM when an internal allocation fails. Some specific errno values are also used β€” for instance, for binding errors as documented in CPU binding. πŸ‘‘

Some modules describe the return values of their functions in their introduction, for instance in The bitmap API. πŸ¦‹

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. πŸ€–πŸ’–


And that’s the footer tea, bestie: Hardware Locality (hwloc), Version 2.15.0, and hwlocality..._reporting(3) β€” no date shown in this page’s footer, just those. Slay. πŸ’€βœ¨

πŸ“¦ where this page comes from