diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-17 22:47:51 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-17 22:47:51 +0200 |
commit | ad4a1e15877aff3da889c0c433475d3173a677e4 (patch) | |
tree | 541d61b531e71662f7c91d9b56393b80bd80ae47 /kmem.h | |
parent | 2c52de4f914806c040f62d9fc3ee88081a7aa56b (diff) | |
download | pcitool-ad4a1e15877aff3da889c0c433475d3173a677e4.tar.gz pcitool-ad4a1e15877aff3da889c0c433475d3173a677e4.tar.bz2 pcitool-ad4a1e15877aff3da889c0c433475d3173a677e4.tar.xz pcitool-ad4a1e15877aff3da889c0c433475d3173a677e4.zip |
Support forceful clean-up of kernel memory
Diffstat (limited to 'kmem.h')
-rw-r--r-- | kmem.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,7 @@ typedef enum { PCILIB_KMEM_FLAG_EXCLUSIVE = KMEM_FLAG_EXCLUSIVE, PCILIB_KMEM_FLAG_PERSISTENT = KMEM_FLAG_PERSISTENT, PCILIB_KMEM_FLAG_HARDWARE = KMEM_FLAG_HW, -// PCILIB_KMEM_FLAG_FORCE = 2 /**< Force buffer + PCILIB_KMEM_FLAG_FORCE = KMEM_FLAG_FORCE } pcilib_kmem_flags_t; @@ -69,4 +69,6 @@ uintptr_t pcilib_kmem_get_block_pa(pcilib_t *ctx, pcilib_kmem_handle_t *k, size_ size_t pcilib_kmem_get_block_size(pcilib_t *ctx, pcilib_kmem_handle_t *k, size_t block); pcilib_kmem_reuse_state_t pcilib_kmem_is_reused(pcilib_t *ctx, pcilib_kmem_handle_t *k); +int pcilib_clean_kernel_memory(pcilib_t *ctx, pcilib_kmem_use_t use, pcilib_kmem_flags_t flags); + #endif /* _PCILIB_KMEM_H */ |