File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change 5
5
The vfio-bindings crate is designed as rust FFI bindings to vfio
6
6
generated using [ bindgen] ( https://crates.io/crates/bindgen ) .
7
7
8
- Multiple Linux versions are supported through rust 'features'. For each
9
- supported Linux version, a feature is introduced.
10
-
11
- Currently supported features/Linux versions:
12
- - vfio-v5_0_0 contains the bindings for the Linux kernel version 5.0
8
+ Currently the bindings are generated from Linux kernel version v6.6.0.
13
9
14
10
## Usage
15
11
16
12
First, add the following to your Cargo.toml:
17
13
``` toml
18
- vfio-bindings = " 0.3"
19
- ```
20
- Next, add this to your crate root:
21
-
22
- ``` rust
23
- extern crate vfio_bindings;
24
- ```
25
-
26
- By default vfio-bindings will export a wrapper over the latest available kernel
27
- version it supported, but you can select a different version by specifying it in
28
- your Cargo.toml:
29
- ``` toml
30
- vfio-bindings = { version = " 0.3" , features = [" vfio-v5_0_0" ]}
14
+ vfio-bindings = " 0.5"
31
15
```
32
16
33
- ## Examples
34
-
35
- To use this bindings, you can do:
17
+ Next, to use this bindings, you can do:
36
18
``` rust
37
19
use vfio_bindings :: bindings :: vfio :: * ;
38
20
```
You can’t perform that action at this time.
0 commit comments