:orphan:
# KSPGetOptionsPrefix
Gets the prefix used for searching for all `KSP` options in the database. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPGetOptionsPrefix(KSP ksp, const char *prefix[])
```
Not Collective


## Input Parameter

- ***ksp -*** the Krylov context



## Output Parameter

- ***prefix -*** pointer to the prefix string used is returned



## Notes
On the fortran side, the user should pass in a string 'prefix' of
sufficient length to hold the prefix.




## See Also
 [](ch_ksp), `KSP`, `KSPSetFromOptions()`, `KSPSetOptionsPrefix()`, `KSPAppendOptionsPrefix()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/itcl.c.html#KSPGetOptionsPrefix">src/ksp/ksp/interface/itcl.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itcl.c)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
