feat: add support for mtd UAPI#110
Conversation
|
Ah shoot, this is missing all the ioctl because of the functional macro problem with bindgen. |
This adds MTD (`mtd/mtd-user.h`) UAPI pieces, useful to manipulate MTD devices from Rust. This adds also a few `ioctl` exposed by this userspace API. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
|
I am unable to run fully the |
This adds also the UBI UAPI and its ioctl. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
|
@sunfishcode friendly ping; are you interested in that contribution? If so, I can clean it up if needed. Thanks! |
sunfishcode
left a comment
There was a problem hiding this comment.
Sorry for the delay here, yes, I think this makes sense. Just one issue below:
| @@ -1,1606 +1,3 @@ | |||
| /* automatically generated by rust-bindgen 0.66.1 */ | |||
|
|
|||
| pub const FIONREAD: u32 = 21531; | |||
There was a problem hiding this comment.
It looks like a bunch of ioctl codes here are getting removed from src/aarch64/ioctl.rs. Do you know what's causing this?
There was a problem hiding this comment.
Uhm, makes no sense, the only reasonable explaination is usually that functional macro (which ioctl make use of) are confusing bindgen in some way that I may have hit involuntarily.
This adds MTD (
mtd/mtd-user.h) UAPI pieces, useful to manipulate MTD devices from Rust.