* Wrapper for pipespace_new() that performs locking assertions. */
| 600 | * Wrapper for pipespace_new() that performs locking assertions. |
| 601 | */ |
| 602 | static int |
| 603 | pipespace(struct pipe *cpipe, int size) |
| 604 | { |
| 605 | |
| 606 | KASSERT(cpipe->pipe_state & PIPE_LOCKFL, |
| 607 | ("Unlocked pipe passed to pipespace")); |
| 608 | return (pipespace_new(cpipe, size)); |
| 609 | } |
| 610 | |
| 611 | /* |
| 612 | * lock a pipe for I/O, blocking other access |
no test coverage detected