dmaengine: idxd: add pid to exported sysfs attribute for opened file
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2023 20:31:42 +0000 (13:31 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 17:48:46 +0000 (23:18 +0530)
commita62b8f87c770fa4109ce515e4d8a0d4701a4ca5f
tree954153acaf507fb5df405773485c9434dacb68b9
parent244009b07e7d0728726f266cc3485d7fd400d0d5
dmaengine: idxd: add pid to exported sysfs attribute for opened file

Provide the pid of the application for the opened file. This allows the
monitor daemon to easily correlate which app opened the file and easily
kill the app by pid if that is desired action.

Tested-by: Tony Zhu <tony.zhu@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20230407203143.2189681-16-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/ABI/stable/sysfs-driver-dma-idxd
drivers/dma/idxd/cdev.c