PetscDLAddr#

find the name of a symbol in a dynamic library

Synopsis#

PetscErrorCode PetscDLAddr(void (*func)(void), char **name)

Not Collective

Input Parameters#

  • handle - obtained with PetscDLOpen() or NULL

  • func - pointer to the function, NULL if not found

Output Parameter#

  • name - name of symbol, or NULL if name lookup is not supported.

Notes#

The caller must free the returned name.

In order to be dynamically loadable, the symbol has to be exported as such. On many UNIX-like systems this requires platform-specific linker flags.

See Also#

PetscDLClose(), PetscDLSym(), PetscDLOpen(), PetscDLLibrary, PetscLoadDynamicLibrary(), PetscDLLibraryAppend(), PetscDLLibraryRetrieve(), PetscDLLibraryOpen(), PetscDLLibraryClose(), PetscDLLibrarySym()

Level#

developer

Location#

src/sys/dll/dlimpl.c


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages