* Initialize and allocate VM and memory for pipe. The structure * will start out zero'd from the ctor, so we just manage the kmem. */
| 675 | * will start out zero'd from the ctor, so we just manage the kmem. |
| 676 | */ |
| 677 | static int |
| 678 | pipe_create(struct pipe *pipe, bool large_backing) |
| 679 | { |
| 680 | int error; |
| 681 | |
| 682 | error = pipespace_new(pipe, !large_backing || amountpipekva > |
| 683 | maxpipekva / 2 ? SMALL_PIPE_SIZE : PIPE_SIZE); |
| 684 | if (error == 0) |
| 685 | pipe->pipe_ino = alloc_unr64(&pipeino_unr); |
| 686 | return (error); |
| 687 | } |
| 688 | |
| 689 | /* ARGSUSED */ |
| 690 | static int |
no test coverage detected