PetscDLMode#

Controls when the symbols of a dynamic library opened with PetscDLOpen() are resolved and whether they are visible to subsequently loaded libraries

Synopsis#

typedef enum {
  PETSC_DL_DECIDE = 0,
  PETSC_DL_NOW    = 1,
  PETSC_DL_LOCAL  = 2
} PetscDLMode;

Values#

  • PETSC_DL_DECIDE - let PETSc choose a sensible default, lazy resolution and global visibility: RTLD_LAZY | RTLD_GLOBAL

  • PETSC_DL_NOW - resolve all symbols of the library immediately on load (corresponds to RTLD_NOW)

  • PETSC_DL_LOCAL - keep them private to this library (corresponds to RTLD_LOCAL)

See Also#

PetscDLOpen(), PetscDLClose(), PetscDLSym(), PetscDLHandle

Level#

developer

Location#

include/petscsystypes.h


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