1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)domain.h 7.2 (Berkeley) 12/30/87 13 */ 14 15 /* 16 * Structure per communications domain. 17 */ 18 struct domain { 19 int dom_family; /* AF_xxx */ 20 char *dom_name; 21 int (*dom_init)(); /* initialize domain data structures */ 22 int (*dom_externalize)(); /* externalize access rights */ 23 int (*dom_dispose)(); /* dispose of internalized rights */ 24 struct protosw *dom_protosw, *dom_protoswNPROTOSW; 25 struct domain *dom_next; 26 }; 27 28 #ifdef KERNEL 29 struct domain *domains; 30 #endif 31