Giter Club home page Giter Club logo

Comments (4)

ikwzm avatar ikwzm commented on August 23, 2024 1

Thank you for the issue.

Your remarks are worth considering.
Please give me a little more time.

from u-dma-buf-mgr.

ikwzm avatar ikwzm commented on August 23, 2024 1

This is a u-dma-buf issue and has been fixed at ikwzm/udmabuf#110.

from u-dma-buf-mgr.

DavidAntliff avatar DavidAntliff commented on August 23, 2024 1

Thank you :)

(I will test in due course)

from u-dma-buf-mgr.

DavidAntliff avatar DavidAntliff commented on August 23, 2024

Ok, it turns out that even though the name udmabuf3 has not been created in the /sys/class/u-dma-buf directory, it is still possible to delete it with:

# echo "delete udmabuf3" > /dev/u-dma-buf-mgr

This allows the name to be reused, if it's known ahead of time that it needs to be deleted first.

May I suggest that if the buffer creation fails, the name is dropped (forgotten) by the mgr, rather than retained? That would make it easier for a user-space program to work with u-dma-buf-mgr, because it can use the state of /sys/class/u-dma-buf to know what names are in use. Without this, a program cannot easily discover that a name is unusable as it doesn't appear in sysfs, and would need to pre-emptively attempt to delete any name it wishes to use.

from u-dma-buf-mgr.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.