ikwzm / udmabuf

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

Export symbols / Allow calls from other modules #92

Closed kevin-servaenergy closed 1 year ago

kevin-servaenergy commented 1 year ago

Hi. This PR is to export symbols for use in other kernel modules as a softdep. For background, I needed to write a custom module to facilitate dma transfers for a FPGA.

I only exported the symbols that were required for my module.

ikwzm commented 1 year ago

Thank you for your pull request. Please give me a little more time.

ikwzm commented 1 year ago

Inspired by your PR, I created a draft version that exports some functions to u-dma-buf for in-kernel. It is located in the branch shown below.

https://github.com/ikwzm/udmabuf/tree/in-kernel-develop

I made the following changes to u-dma-buf.c:

kevin-servaenergy commented 1 year ago

Awesome! Looks good. Tried out your branch and everything seems to work.

ikwzm commented 1 year ago

Thanks for trying. I'll test it for a while and then release it.

ikwzm commented 1 year ago

Thank you for your pull request. I will close this pull request with thanks to you.