Changes in uspace/lib/drv/generic/interrupt.c [56fd7cf:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/interrupt.c
r56fd7cf rfeeac0d 138 138 interrupt_context_list_t *list, int id) 139 139 { 140 interrupt_context_t *ctx; 141 142 fibril_mutex_lock(&list->mutex); 143 144 list_foreach(list->contexts, link) { 145 ctx = list_get_instance(link, interrupt_context_t, link); 140 fibril_mutex_lock(&list->mutex); 141 142 list_foreach(list->contexts, link, interrupt_context_t, ctx) { 146 143 if (ctx->id == id) { 147 144 fibril_mutex_unlock(&list->mutex); … … 157 154 interrupt_context_list_t *list, ddf_dev_t *dev, int irq) 158 155 { 159 interrupt_context_t *ctx; 160 161 fibril_mutex_lock(&list->mutex); 162 163 list_foreach(list->contexts, link) { 164 ctx = list_get_instance(link, interrupt_context_t, link); 156 fibril_mutex_lock(&list->mutex); 157 158 list_foreach(list->contexts, link, interrupt_context_t, ctx) { 165 159 if (ctx->irq == irq && ctx->dev == dev) { 166 160 fibril_mutex_unlock(&list->mutex);
Note:
See TracChangeset
for help on using the changeset viewer.