Home
last modified time | relevance | path

Searched hist:"2 d0050cbe27fed5233561451e6de64af5ecb6571" (Results 1 – 3 of 3) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dchardev.rs2d0050cbe27fed5233561451e6de64af5ecb6571 Fri Feb 14 11:41:14 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: chardev: provide basic bindings to character devices

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>
H A Dzeroable.rs2d0050cbe27fed5233561451e6de64af5ecb6571 Fri Feb 14 11:41:14 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: chardev: provide basic bindings to character devices

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>
/qemu/rust/qemu-api/
H A Dmeson.build2d0050cbe27fed5233561451e6de64af5ecb6571 Fri Feb 14 11:41:14 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: chardev: provide basic bindings to character devices

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>