Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2025-03-06 | rust: chardev: provide basic bindings to character devices | Paolo Bonzini | 1 | -2/+240 | |
Most of the character device API is pretty simple, with "0 or -errno" or "number of bytes or -errno" as the convention for return codes. Add safe wrappers for the API to the CharBackend bindgen-generated struct. The API is not complete, but it covers the parts that are used by the PL011 device, plus qemu_chr_fe_write which is needed to implement the standard library Write trait. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||||
2025-03-06 | rust: chardev: wrap Chardev with Opaque<> | Paolo Bonzini | 1 | -2/+6 | |
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||||
2025-02-13 | rust: chardev, qdev: add bindings to qdev_prop_set_chr | Paolo Bonzini | 1 | -0/+19 | |
Because the argument to the function is an Owned<Chardev>, this also adds an ObjectType implementation to Chardev. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |