# PetscDLLibraryOpen Opens a PETSc dynamic link library ## Synopsis ``` PetscErrorCode PetscDLLibraryOpen(MPI_Comm comm, const char path[], PetscDLLibrary *entry) ``` Collective ## Input Parameters - ***comm -*** processors that are opening the library - ***path -*** name of the library, can be relative or absolute ## Output Parameter - ***entry -*** a PETSc dynamic link library entry ## Notes [[://hostname]/directoryname/]libbasename[.so.1.0] If the library has the symbol PetscDLLibraryRegister_basename() in it then that function is automatically run when the library is opened. ${PETSC_ARCH} occurring in directoryname and filename will be replaced with the appropriate value. ## See Also `PetscLoadDynamicLibrary()`, `PetscDLLibraryAppend()` ## Level developer ## Location src/sys/dll/dl.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/dll/dl.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)