Home
last modified time | relevance | path

Searched refs:lock_cap (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/vfio/
H A Dvfio_iommu_type1.c95 bool lock_cap; /* capable(CAP_IPC_LOCK) */ member
413 bool lock_cap, long npage) in mm_lock_acct() argument
420 ret = __account_locked_vm(mm, abs(npage), npage > 0, task, lock_cap); in mm_lock_acct()
437 ret = mm_lock_acct(dma->task, mm, dma->lock_cap, npage); in vfio_lock_acct()
674 if (!dma->lock_cap && in vfio_pin_pages_remote()
1530 bool lock_cap; in vfio_change_dma_owner() local
1536 lock_cap = capable(CAP_IPC_LOCK); in vfio_change_dma_owner()
1537 ret = mm_lock_acct(task, mm, lock_cap, npage); in vfio_change_dma_owner()
1542 mm_lock_acct(dma->task, dma->mm, dma->lock_cap, -npage); in vfio_change_dma_owner()
1553 dma->lock_cap = lock_cap; in vfio_change_dma_owner()
[all …]