[BRLTTY] BRLTTY in GRUB2

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Wed Apr 4 10:57:47 EDT 2012


On 04.04.2012 07:06, Dave Mielke wrote:
> Maybe this'll help explain my question regarding reporting grub errors. In 
> ls.c, I found:
>
>    grub_error (GRUB_ERR_BAD_ARGUMENT, "invalid argument");
>
> In this case, the writer of the code knows which text matches the error code. 
> When we call the serial driver's configure() method, however, we get back an 
> error code but we don't know what it is. Do we just trust that the configure() 
> method has already called grub_error()?
Yes
>  What if it hasn't?
Then it's buggy and has to be fixed.
>  
>
> Does grub have a function that converts a grub_err_t value to an errno value?
It's identity.
> Does grub have functions for disabling and reenabling interrupts?
No. The only interrupts currently enabled are traps on invalid
operations or debugging and only when the module for it is loaded, only
on x86.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://mielke.cc/pipermail/brltty/attachments/20120404/69374f14/attachment.sig>


More information about the BRLTTY mailing list