Lines Matching +full:linux +full:- +full:headers
1 # Contributing to virtio-bindings
7 [bindgen](https://rust-lang.github.io/rust-bindgen/) version 0.63.0:
9 cargo install bindgen-cli --vers 0.63.0
12 ### Linux Kernel
13 Generating bindings depends on the Linux kernel, so you need to have the
17 git clone https://github.com/torvalds/linux.git
22 For this example we assume that you have both linux and virtio-bindings
26 # linux is the repository that you cloned at the previous step.
27 cd linux
31 # Step 2: Generate the bindings from the kernel headers. We need to generate a
32 # file for each one of the virtio headers. For the moment, we are only picking
33 # headers that we are interested in. Feel free to add additional header files if
47 bindgen include/linux/$i.h -o $i.rs \
48 --allowlist-file include/linux/$i.h \
49 --with-derive-default \
50 --with-derive-partialeq \
51 -- -Iinclude
56 cp linux/v5_0_headers/*.rs vm-virtio/crates/virtio-bindings/src
57 mv vm-virtio/crates/virtio-bindings/src/virtio_net.rs vm-virtio/crates/virtio-bindings/src/virtio_n…