ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.
BSD 2-Clause "Simplified" License
539 stars 165 forks source link

memory-region property how to use it? #73

Open balaji-ch opened 3 years ago

balaji-ch commented 3 years ago

It is mentioned in the readme that "By the memory-region property, it can be associated the reserved memory area with u-dma-buf." But I don't see of_property_read_ulong for it. Isn't it necessary as you read other properties ?

ikwzm commented 3 years ago

Thank you for the issue.

It is mentioned in the readme that "By the memory-region property, it can be associated the reserved memory area with u-dma-buf." But I don't see of_property_read_ulong for it. Isn't it necessary as you read other properties ?

The memory-region property is processed by of_reserved_mem_device_init() provided by the Linux Kernel.