Is it possible to code a device driver in Java?

后端 未结 13 1225
猫巷女王i
猫巷女王i 2020-12-04 20:04

Introduction

I heard something about writing device drivers in Java (heard as in \"with my ears\", not from the internet) and was wondering... I always thought dev

相关标签:
13条回答
  • 2020-12-04 21:10

    PCIe user space device drivers can be written in Pure Java. See JVerbs for details about memory-based direct hardware access, in the context of OFED. This is a technique that can be used to create very high performance systems.

    You can examine the PCI bus to determine the memory regions for a given device, what ports it has, etc. The memory regions can be mapped into the JVM's process.

    Of course, you're responsible for implementing everything yourself.

    I didn't say easy. I said possible. ;)

    See also Device Drivers in User Space, which discusses using the UIO framework to build a user space driver.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题