Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/io_uring/bindgen.sh
5392 views
1
#!/usr/bin/env bash
2
# Copyright 2022 The ChromiumOS Authors
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
# Regenerate io_uring bindgen bindings.
7
8
set -euo pipefail
9
cd "$(dirname "${BASH_SOURCE[0]}")/.."
10
11
source tools/impl/bindgen-common.sh
12
13
bindgen_generate \
14
--allowlist-type='io_uring_.*' \
15
--allowlist-var='IO_URING_.*' \
16
--allowlist-var='IORING_.*' \
17
"${BINDGEN_LINUX_X86_HEADERS}/include/linux/io_uring.h" \
18
| replace_linux_int_types | rustfmt \
19
> io_uring/src/bindings.rs
20
21