linux_api/
ldt.rs

1/// Descriptor type, used e.g. as the `tls` parameter to the `clone` syscall.
2//
3// I initially tried using `bindgen` to get this type from the linux headers ourselves
4// as we do for most of our  types, but ran into trouble because *cbindgen* fails
5// to parse the bitfield definition created by *bindgen*. This causes cbindgen to fail
6// even if I added this type and the generated bitfield type to the ignore list.
7//
8// Once we're no longer re-exporting our generated kernel bindings out to C, we can
9// either generate this definition ourselves (as currently done for our other types),
10// or switch over to linux-raw-sys throughout.
11#[allow(non_camel_case_types)]
12pub type linux_user_desc = linux_raw_sys::general::user_desc;