JJTech

Results 85 comments of JJTech

Oooh, but that causes issues with vector dequeue

Because it could have a different size (as it's a `dyn trait`), it must be boxed or a reference... can we just Box the transfers?

Ok, I put the Transfer in a `Box`, and I moved the common functionality (submit, cancel, handle_completed) into a trait. The new function is *not* in the trait, because it...

What's with this: ```rust Box::into_raw(Box::new(AtomicBool::new(false))).cast::(); ``` ?

Y’know what, I’m going to stop trying to restructure it. I’m realizing that I can’t keep using OOP principles here… not sure what the alternative is though…

So, I'm seeing several things. One of which, is there isn't actually a way to tell what transfer is what, is there? My usecase has an audio stream and a...

Maybe an `enum` like you said: ```rust enum TransferType { Bulk { endpoint: u8 }, Control { request_type: u8, request: u8, value: u16, index: u16 }, Isochronous { endpoint: u8,...

Also oops totally forgot about implementing Interrupt transfers...

> However, I currently don’t have any customized ACPI code to compile. Well, I was thinking that *all* the ACPI patches would be compiled at build time, even off-the-shelf ones....

> decompiling and recompiling the patch may not give equivalent results Well, here are the [original sources](https://github.com/dortania/Getting-Started-With-ACPI/tree/master/extra-files/decompiled). *Hopefully,* compiling the same source file should produce an identical output. I seem...