Skip to content

Commit 4985e60

Browse files
tammelatgross35
authored andcommitted
linux: add devmem structs
For reference: https://elixir.bootlin.com/linux/v6.13.5/source/include/uapi/linux/uio.h#L23 Signed-off-by: Pedro Tammela <[email protected]>
1 parent ae98edd commit 4985e60

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4063,6 +4063,10 @@ fn test_linux(target: &str) {
40634063
// FIXME(linux): Requires >= 6.9 kernel headers.
40644064
"epoll_params" => true,
40654065

4066+
// FIXME(linux): Requires >= 6.12 kernel headers.
4067+
"dmabuf_cmsg" |
4068+
"dmabuf_token" => true,
4069+
40664070
_ => false,
40674071
}
40684072
});

src/unix/linux_like/linux/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,21 @@ s! {
13201320
pub propagation: crate::__u64,
13211321
pub userns_fd: crate::__u64,
13221322
}
1323+
1324+
// linux/uio.h
1325+
1326+
pub struct dmabuf_cmsg {
1327+
pub frag_offset: crate::__u64,
1328+
pub frag_size: crate::__u32,
1329+
pub frag_token: crate::__u32,
1330+
pub dmabuf_id: crate::__u32,
1331+
pub flags: crate::__u32,
1332+
}
1333+
1334+
pub struct dmabuf_token {
1335+
pub token_start: crate::__u32,
1336+
pub token_count: crate::__u32,
1337+
}
13231338
}
13241339

13251340
cfg_if! {

0 commit comments

Comments
 (0)