port_kernel.h revision 11dc39dd3ec06044a7e912a5e26b6d5c55ecd731
* The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * See the License for the specific language governing permissions * and limitations under the License. * When distributing Covered Code, include this CDDL HEADER in each * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. #
pragma ident "%Z%%M% %I% %E% SMI" * The contents of this file are private to the implementation of the * Solaris system and event ports subsystem and are subject to change * at any time without notice. * The port_kevent_t struct represents the kernel internal port event. * Every event is associated to a port (portkev_port). /* flags : port_alloc_event() */ /* flags : callback function */ * port_source_t represents a source associated with a port. * The portsrc_close() function is required to notify the source when * One cache for each port that uses PORT_SOURCE_FD. * pc_lock must be the first element of port_fdcache_t to keep it * synchronized with the offset of pc_lock in pollcache_t (see pollrelock()). int pc_fdcount;
/* track how many fd's are hashed */ * Structure of port_ksource_tab[] table. * The port_ksource_tab[] is required to allow kernel sources to become * associated with a port at the time of port creation. This feature is * required to avoid performance degradation in sub-systems, specially when * they should need to check the association on every event activity. /* event port and source management */ void (*)(
void *,
int,
pid_t,
int),
void *
arg,
int (*)(
void *,
int *,
pid_t,
int,
void *),
void *);
#
endif /* _SYS_PORT_KERNEL_H */