sys_pipe.c (92305) | sys_pipe.c (92654) |
---|---|
1/* 2 * Copyright (c) 1996 John S. Dyson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * | 1/* 2 * Copyright (c) 1996 John S. Dyson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * |
19 * $FreeBSD: head/sys/kern/sys_pipe.c 92305 2002-03-15 07:18:09Z alfred $ | 19 * $FreeBSD: head/sys/kern/sys_pipe.c 92654 2002-03-19 09:11:49Z jeff $ |
20 */ 21 22/* 23 * This file contains a high-performance replacement for the socket-based 24 * pipes scheme originally used in FreeBSD/4.4Lite. It does not support 25 * all features of sockets, but does do everything that pipes normally 26 * do. 27 */ --- 149 unchanged lines hidden (view full) --- 177 178static vm_zone_t pipe_zone; 179 180SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_ANY, pipeinit, NULL); 181 182static void 183pipeinit(void *dummy __unused) 184{ | 20 */ 21 22/* 23 * This file contains a high-performance replacement for the socket-based 24 * pipes scheme originally used in FreeBSD/4.4Lite. It does not support 25 * all features of sockets, but does do everything that pipes normally 26 * do. 27 */ --- 149 unchanged lines hidden (view full) --- 177 178static vm_zone_t pipe_zone; 179 180SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_ANY, pipeinit, NULL); 181 182static void 183pipeinit(void *dummy __unused) 184{ |
185 186 pipe_zone = zinit("PIPE", sizeof(struct pipe), 0, 0, 4); | 185 pipe_zone = uma_zcreate("PIPE", sizeof(struct pipe), NULL, 186 NULL, NULL, NULL, UMA_ALIGN_PTR, 0); |
187} 188 189/* 190 * The pipe system call for the DTYPE_PIPE type of pipes 191 */ 192 193/* ARGSUSED */ 194int --- 1228 unchanged lines hidden --- | 187} 188 189/* 190 * The pipe system call for the DTYPE_PIPE type of pipes 191 */ 192 193/* ARGSUSED */ 194int --- 1228 unchanged lines hidden --- |