PetscDLAddr#

find the name of a symbol in a dynamic library

Synopsis#

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

Not Collective, No Fortran Support

Input Parameters#

  • 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


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