diff options
| author | Ming Lei <ming.lei@redhat.com> | 2025-11-21 09:58:25 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-28 09:20:13 -0700 |
| commit | 8d61ece156bd4f2b9e7d3b2a374a26d42c7a4a06 (patch) | |
| tree | 1c32e850b0609b4eefc65c8e4c4b505d4a562545 /tools/lib/python/kdoc/enrich_formatter.py | |
| parent | 3035b9b46b0611898babc0b96ede65790d3566f7 (diff) | |
ublk: add `union ublk_io_buf` with improved naming
Add `union ublk_io_buf` for naming the anonymous union of struct ublk_io's
addr and buf fields, meantime apply it to `struct ublk_io` for storing either
ublk auto buffer register data or ublk server io buffer address.
The union uses clear field names:
- `addr`: for regular ublk server io buffer addresses
- `auto_reg`: for ublk auto buffer registration data
This eliminates confusing access patterns and improves code readability.
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python/kdoc/enrich_formatter.py')
0 files changed, 0 insertions, 0 deletions
