Skip to content
Commit fca78df7 authored by Kalesh Singh's avatar Kalesh Singh
Browse files

FROMLIST: BACKPORT: procfs/dmabuf: Add inode number to /proc/*/fdinfo



And 'inode_no' field to /proc/<pid>/fdinfo/<FD> and
/proc/<pid>/task/<tid>/fdinfo/<FD>.

The inode numbers can be used to uniquely identify DMA buffers
in user space and avoids a dependency on /proc/<pid>/fd/* when
accounting per-process DMA buffer sizes.

Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>

[Kalesh Singh - Resolve conflict in fd/proc/fd.c]
Bug: 159126739
Bug: 167141117
Link: https://lore.kernel.org/lkml/20210208155315.1367371-2-kaleshsingh@google.com/

Change-Id: Ic9c551998832129051ada07374ed02da3248dc9c
parent fb54b8b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment