From: Jean-Philippe Brucker jean-philippe.brucker@arm.com
maillist inclusion category: feature bugzilla: 51855
Reference: https://jpbrucker.net/git/linux/commit/?h=sva/2021-03-01&id=176b3454e53f...
---------------------------------------------
Userspace drivers implemented with VFIO might want to bind sub-processes to their devices. In a VFIO ioctl, they provide a pid that is used to find a task and its mm. Since VFIO can be built as a module, export the find_get_task_by_vpid symbol.
Signed-off-by: Jean-Philippe Brucker jean-philippe@linaro.org Signed-off-by: Lijun Fang fanglijun3@huawei.com Reviewed-by: Weilong Chen chenweilong@huawei.com Signed-off-by: Zheng Zengkai zhengzengkai@huawei.com --- kernel/pid.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/pid.c b/kernel/pid.c index 6500ef956f2f..383abde0c208 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -437,6 +437,7 @@ struct task_struct *find_get_task_by_vpid(pid_t nr)
return task; } +EXPORT_SYMBOL_GPL(find_get_task_by_vpid);
struct pid *get_task_pid(struct task_struct *task, enum pid_type type) {