smb_kdoor_ops.c revision c8ec8eea9849cac239663c46be8a7f5d2ba7ca00
/*
* CDDL HEADER START
*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.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
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "@(#)smb_kdoor_ops.c 1.5 08/08/05 SMI"
/*
* Kernel door operations
*/
#include <smbsrv/smb_common_door.h>
#include <smbsrv/smb_door_svc.h>
#include <smbsrv/smb_incl.h>
#include <smbsrv/smb_share.h>
/* SMB kernel module's door operation table */
{
};
int
{
if (opcode < 0 ||
return (-1);
else
return (0);
}
/*ARGSUSED*/
char *
{
char *rbuf;
rbufsize);
if (!rbuf) {
*rbufsize = 0;
return (NULL);
}
return (rbuf);
}
char *
{
*rbufsize = 0;
return (NULL);
}
*rbufsize = 0;
}
return (rbuf);
}
/*
* smb_kdr_op_share()
*
* This function decodes an smb_dr_kshare_t structure from userland and
* calls smb_share() to take action depending on whether a share is being
* enabled or disabled.
*/
char *
{
int error = 0;
*rbufsize = 0;
return (NULL);
}
case SMB_SHROP_ADD:
break;
case SMB_SHROP_DELETE:
break;
default:
ASSERT(0);
break;
}
rbufsize);
if (!rbuf) {
*rbufsize = 0;
return (NULL);
}
return (rbuf);
}