/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to kmem.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
int pcilib_clean_kernel_memory(pcilib_t *ctx, pcilib_kmem_use_t use, pcilib_kmem_flags_t flags) {
21
21
    kmem_handle_t kh = {0};
22
22
    kh.use = use;
23
 
    kh.flags = flags|KMEM_FLAG_MASS;
 
23
    kh.flags = flags|PCILIB_KMEM_FLAG_MASS;
24
24
 
25
25
    return ioctl(ctx->handle, PCIDRIVER_IOC_KMEM_FREE, &kh);
26
26
}