vscan.h revision 911106dfb16696472af8c1b7b4c554a829354fa8
911106dfb16696472af8c1b7b4c554a829354fa8jm * CDDL HEADER START
911106dfb16696472af8c1b7b4c554a829354fa8jm * The contents of this file are subject to the terms of the
911106dfb16696472af8c1b7b4c554a829354fa8jm * Common Development and Distribution License (the "License").
911106dfb16696472af8c1b7b4c554a829354fa8jm * You may not use this file except in compliance with the License.
911106dfb16696472af8c1b7b4c554a829354fa8jm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911106dfb16696472af8c1b7b4c554a829354fa8jm * See the License for the specific language governing permissions
911106dfb16696472af8c1b7b4c554a829354fa8jm * and limitations under the License.
911106dfb16696472af8c1b7b4c554a829354fa8jm * When distributing Covered Code, include this CDDL HEADER in each
911106dfb16696472af8c1b7b4c554a829354fa8jm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
911106dfb16696472af8c1b7b4c554a829354fa8jm * If applicable, add the following below this CDDL HEADER, with the
911106dfb16696472af8c1b7b4c554a829354fa8jm * fields enclosed by brackets "[]" replaced with your own identifying
911106dfb16696472af8c1b7b4c554a829354fa8jm * information: Portions Copyright [yyyy] [name of copyright owner]
911106dfb16696472af8c1b7b4c554a829354fa8jm * CDDL HEADER END
911106dfb16696472af8c1b7b4c554a829354fa8jm * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
911106dfb16696472af8c1b7b4c554a829354fa8jm * Use is subject to license terms.
911106dfb16696472af8c1b7b4c554a829354fa8jm#pragma ident "%Z%%M% %I% %E% SMI"
911106dfb16696472af8c1b7b4c554a829354fa8jmextern "C" {
911106dfb16696472af8c1b7b4c554a829354fa8jm * vscan.h provides definitions for vscan kernel module
911106dfb16696472af8c1b7b4c554a829354fa8jm#define VS_DRV_MAX_FILES 1024 /* max concurent file scans */
911106dfb16696472af8c1b7b4c554a829354fa8jm#define VS_DRV_IOCTL_DISABLE 0x0002 /* vscand shutting down */
911106dfb16696472af8c1b7b4c554a829354fa8jm#define VS_DRV_IOCTL_CONFIG 0x0004 /* vscand config data update */
911106dfb16696472af8c1b7b4c554a829354fa8jm/* vsr_access */
911106dfb16696472af8c1b7b4c554a829354fa8jm#define VS_TYPES_LEN 4096 /* vs_config_t - types buffer */
911106dfb16696472af8c1b7b4c554a829354fa8jm * AV_SCANSTAMP_SZ is the size of the scanstamp stored in the
911106dfb16696472af8c1b7b4c554a829354fa8jm * filesystem. vs_scanstamp_t is 1 character longer to allow
911106dfb16696472af8c1b7b4c554a829354fa8jm * a null terminated string to be used within vscan
911106dfb16696472af8c1b7b4c554a829354fa8jm/* used for both request to and response from vscand */
911106dfb16696472af8c1b7b4c554a829354fa8jmtypedef struct vs_scan_req {
911106dfb16696472af8c1b7b4c554a829354fa8jm uint32_t vsr_access; /* VS_ACCESS_ALLOW, VS_ACCESS_DENY */
911106dfb16696472af8c1b7b4c554a829354fa8jm/* passed in VS_DRV_IOCTL_CONFIG */
911106dfb16696472af8c1b7b4c554a829354fa8jmtypedef struct vs_config {
911106dfb16696472af8c1b7b4c554a829354fa8jm uint64_t vsc_max_size; /* files > max size (bytes) not scan */
911106dfb16696472af8c1b7b4c554a829354fa8jm uint64_t vsc_allow; /* allow access to file exceeding max_size? */
911106dfb16696472af8c1b7b4c554a829354fa8jm * max no of types in vs_config_t.vsc_types
911106dfb16696472af8c1b7b4c554a829354fa8jm * used as dimention for array of pointers to types
911106dfb16696472af8c1b7b4c554a829354fa8jm#endif /* _KERNEL */
911106dfb16696472af8c1b7b4c554a829354fa8jm#endif /* _VSCAN_H */