Changeset ff381a7 in mainline for kernel/generic
- Timestamp:
- 2015-11-02T20:54:19Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8513177
- Parents:
- 3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic
- Files:
-
- 5 edited
-
include/adt/list.h (modified) (3 diffs)
-
src/adt/list.c (modified) (2 diffs)
-
src/console/console.c (modified) (1 diff)
-
src/ipc/event.c (modified) (4 diffs)
-
src/ipc/irq.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/list.h
r3feeab2 rff381a7 53 53 54 54 55 extern intlist_member(const link_t *, const list_t *);55 extern bool list_member(const link_t *, const list_t *); 56 56 extern void list_splice(list_t *, link_t *); 57 extern unsigned intlist_count(const list_t *);57 extern unsigned long list_count(const list_t *); 58 58 59 59 … … 220 220 * 221 221 */ 222 NO_TRACE static inline intlist_empty(const list_t *list)222 NO_TRACE static inline bool list_empty(const list_t *list) 223 223 { 224 224 return (list->head.next == &list->head); … … 353 353 * 354 354 */ 355 static inline link_t *list_nth(list_t *list, unsigned intn)356 { 357 unsigned intcnt = 0;355 static inline link_t *list_nth(list_t *list, unsigned long n) 356 { 357 unsigned long cnt = 0; 358 358 link_t *link; 359 359 -
kernel/generic/src/adt/list.c
r3feeab2 rff381a7 52 52 * 53 53 */ 54 intlist_member(const link_t *link, const list_t *list)54 bool list_member(const link_t *link, const list_t *list) 55 55 { 56 56 bool found = false; … … 99 99 * @return Number of items in the list. 100 100 */ 101 unsigned intlist_count(const list_t *list)101 unsigned long list_count(const list_t *list) 102 102 { 103 unsigned intcount = 0;103 unsigned long count = 0; 104 104 105 105 link_t *link = list_first(list); -
kernel/generic/src/console/console.c
r3feeab2 rff381a7 437 437 } 438 438 439 return size;439 return EOK; 440 440 } 441 441 -
kernel/generic/src/ipc/event.c
r3feeab2 rff381a7 251 251 * 252 252 * @return EOK if the subscription was successful. 253 * @return EEXIST Sif the notifications of the given type are253 * @return EEXIST if the notifications of the given type are 254 254 * already subscribed. 255 255 * … … 269 269 res = EOK; 270 270 } else 271 res = EEXIST S;271 res = EEXIST; 272 272 273 273 spinlock_unlock(&event->lock); … … 282 282 * 283 283 * @return EOK if the subscription was successful. 284 * @return EEXIST Sif the notifications of the given type are284 * @return EEXIST if the notifications of the given type are 285 285 * already subscribed. 286 286 * … … 334 334 * @return EOK on success. 335 335 * @return ELIMIT on unknown event type. 336 * @return EEXIST Sif the notifications of the given type are336 * @return EEXIST if the notifications of the given type are 337 337 * already subscribed. 338 338 * -
kernel/generic/src/ipc/irq.c
r3feeab2 rff381a7 351 351 352 352 free(irq); 353 return EEXIST S;353 return EEXIST; 354 354 } 355 355
Note:
See TracChangeset
for help on using the changeset viewer.
