A glaring omission from this post is how to handle concurrency. What happens when two concurrent calls to gpu_fb_write() are made? There is no code to handle that case.
This is the second post in a series, in the following post I go into displaying via EFI’s Graphics Output Protocol or the kernel’s framebuffer machinery, which makes the character device unnecessary and removes the need to handle serialization at all :-)
A glaring omission from this post is how to handle concurrency. What happens when two concurrent calls to
gpu_fb_write()are made? There is no code to handle that case.Congrats on making my brain go “well obviously it will… uh… well… hang on, wait, what does happen in that case?”
This is the second post in a series, in the following post I go into displaying via EFI’s Graphics Output Protocol or the kernel’s framebuffer machinery, which makes the character device unnecessary and removes the need to handle serialization at all :-)