Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide a safe way to access ioctl interface #497

@FDelporte

Description

@FDelporte

Request by @stefanhaustein related to pi4j-drivers

Would it be feasible to have a "generic" ioctrl(int fd, int id, ByteBuffer) exposed to java via JNI (or new native bindings mechanisms)? I think the max buffer size is limited to 8k, so it should be feasible expose a safe variant that uses one fixed buffer internally. This might make it easier to provide Java access to some device descriptions (such as framebuffer) via get() and the right offset....?

For instance: The sensor hat matrix display is mapped to a framebuffer, and this would allow the driver to query the size and color depth...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestffmFFM API Plugin

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions