Changeset e9d15d9 in mainline for uspace/lib/c/generic/irq.c


Ignore:
Timestamp:
2017-08-18T21:15:26Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24abb85d
Parents:
1c85bae
Message:

Turn IRQ structures into kernel objects

ipc_irq_subscribe() now returns a capability for the underlying IRQ kernel
object. ipc_irq_unsubscribe() can now be done only with a valid IRQ capability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/irq.c

    r1c85bae re9d15d9  
    5959 * @param ucode  Top-half pseudocode handler.
    6060 *
    61  * @return Value returned by the kernel.
     61 * @return IRQ capability returned by the kernel.
     62 * @return Error code returned by the kernel.
    6263 *
    6364 */
     
    7475/** Unsubscribe from IRQ notification.
    7576 *
    76  * @param inr   IRQ number.
    77  * @param devno Device number of the device generating inr.
     77 * @param cap   IRQ capability.
    7878 *
    7979 * @return Value returned by the kernel.
    8080 *
    8181 */
    82 int ipc_irq_unsubscribe(int inr, int devno)
     82int ipc_irq_unsubscribe(int cap)
    8383{
    84         return __SYSCALL2(SYS_IPC_IRQ_UNSUBSCRIBE, inr, devno);
     84        return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
    8585}
    8686
Note: See TracChangeset for help on using the changeset viewer.