Skip to content

feat(queue): add new_boxed constructor and detach_unused method - #10

Merged
fslongjin merged 1 commit into
masterfrom
feat/queue-new-boxed-detach-unused
Jul 9, 2026
Merged

feat(queue): add new_boxed constructor and detach_unused method#10
fslongjin merged 1 commit into
masterfrom
feat/queue-new-boxed-detach-unused

Conversation

@fslongjin

Copy link
Copy Markdown
Member

Summary

  • new_boxed<T> constructor: Allocates VirtQueue directly on the heap, avoiding large stack allocations for queues with substantial descriptor shadow arrays (requires alloc feature).
  • detach_unused method: Recycles a descriptor chain during driver teardown after the device has been reset and can no longer access the queue.

- Add `new_boxed<T>` constructor that allocates VirtQueue directly on the
  heap, avoiding large stack allocations for queues with substantial
  descriptor shadow arrays (requires `alloc` feature).
- Add `detach_unused` method to recycle a descriptor chain during driver
  teardown after the device has been reset.

Signed-off-by: LoGin <longjin@DragonOS.org>
@fslongjin
fslongjin merged commit 89f6a40 into master Jul 9, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant