1What: /sys/kernel/dmabuf/buffers 2Date: May 2021 3KernelVersion: v5.13 4Contact: Hridya Valsaraju <[email protected]> 5Description: The /sys/kernel/dmabuf/buffers directory contains a 6 snapshot of the internal state of every DMA-BUF. 7 /sys/kernel/dmabuf/buffers/<inode_number> will contain the 8 statistics for the DMA-BUF with the unique inode number 9 <inode_number> 10Users: kernel memory tuning/debugging tools 11 12What: /sys/kernel/dmabuf/buffers/<inode_number>/exporter_name 13Date: May 2021 14KernelVersion: v5.13 15Contact: Hridya Valsaraju <[email protected]> 16Description: This file is read-only and contains the name of the exporter of 17 the DMA-BUF. 18 19What: /sys/kernel/dmabuf/buffers/<inode_number>/size 20Date: May 2021 21KernelVersion: v5.13 22Contact: Hridya Valsaraju <[email protected]> 23Description: This file is read-only and specifies the size of the DMA-BUF in 24 bytes. 25 26What: /sys/kernel/dmabuf/buffers/<inode_number>/attachments 27Date: May 2021 28KernelVersion: v5.13 29Contact: Hridya Valsaraju <[email protected]> 30Description: This directory will contain subdirectories representing every 31 attachment of the DMA-BUF. 32 33What: /sys/kernel/dmabuf/buffers/<inode_number>/attachments/<attachment_uid> 34Date: May 2021 35KernelVersion: v5.13 36Contact: Hridya Valsaraju <[email protected]> 37Description: This directory will contain information on the attached device 38 and the number of current distinct device mappings. 39 40What: /sys/kernel/dmabuf/buffers/<inode_number>/attachments/<attachment_uid>/device 41Date: May 2021 42KernelVersion: v5.13 43Contact: Hridya Valsaraju <[email protected]> 44Description: This file is read-only and is a symlink to the attached device's 45 sysfs entry. 46 47What: /sys/kernel/dmabuf/buffers/<inode_number>/attachments/<attachment_uid>/map_counter 48Date: May 2021 49KernelVersion: v5.13 50Contact: Hridya Valsaraju <[email protected]> 51Description: This file is read-only and contains a map_counter indicating the 52 number of distinct device mappings of the attachment. 53