* Pop all items off a stack. */
| 317 | * Pop all items off a stack. |
| 318 | */ |
| 319 | CK_CC_INLINE static struct ck_stack_entry * |
| 320 | ck_stack_batch_pop_npsc(struct ck_stack *target) |
| 321 | { |
| 322 | struct ck_stack_entry *n; |
| 323 | |
| 324 | n = target->head; |
| 325 | target->head = NULL; |
| 326 | |
| 327 | return n; |
| 328 | } |
| 329 | |
| 330 | /* |
| 331 | * Stack initialization function. Guarantees initialization across processors. |