AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R1 =     &D9 (service code)
     R0 =     subreason
           b0-b7     0 -      device added
                 1 -      device being removed
                 others - reserved
           b8-b31 - flags dependent on subreason
Added
<=          R0 =     0 (reason code + flags)
     R1 =     &D9 (service code)
     R2 =     Pointer to HAL device descriptor

A new device has been attached to the system, this service call announces its arrival for any drivers which may be interested in it.

Do not claim this call, it is for information only.
Device being removed
=>     R0 =     1 (reason code + flags)
     R1 =     &D9 (service code)
     R2 =     Pointer to HAL device descriptor
<=     R1 =     0 to object to the removal, set R0 to point to a standard error block

This call is issued just before the device is removed from the system, and removal will occur provided R1 is not claimed.

[sh-index] Back to list of manuals