diff options
Diffstat (limited to 'kmem.c')
-rw-r--r-- | kmem.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -17,6 +17,15 @@ #include "kmem.h" #include "error.h" +int pcilib_clean_kernel_memory(pcilib_t *ctx, pcilib_kmem_use_t use, pcilib_kmem_flags_t flags) { + kmem_handle_t kh = {0}; + kh.use = use; + kh.flags = flags|KMEM_FLAG_MASS; + + return ioctl(ctx->handle, PCIDRIVER_IOC_KMEM_FREE, &kh); +} + + static int pcilib_free_kernel_buffer(pcilib_t *ctx, pcilib_kmem_list_t *kbuf, size_t i, pcilib_kmem_flags_t flags) { kmem_handle_t kh = {0}; |