smb_kdoor_clnt.c revision 323a81d93e2f58a7d62f6e523f9fddbc029d3d0b
/*
* 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 "%Z%%M% %I% %E% SMI"
#include <smbsrv/smb_door_svc.h>
#include <smbsrv/smb_common_door.h>
/*
* smb_kdoor_clnt_free
*
* regardless of the status of the up-call.
*
* The doorfs allocates a new buffer if the result buffer passed by the client
* is too small. This function will deallocate that buffer as well.
*/
void
{
if (argp) {
} else if (rbufp) {
}
} else {
if (rbufp)
}
}
/*
* smb_kdoor_clnt_start
*
* The SMB kernel module should invoke this function upon startup.
*/
int
{
int rc = 0;
if (smb_kdoor_clnt_dh == NULL) {
if (smb_kdoor_clnt_dh == NULL) {
rc = -1;
}
}
return (rc);
}
/*
* smb_kdoor_clnt_stop
*
* The SMB kernel module should invoke this function upon unload.
*/
void
{
if (smb_kdoor_clnt_dh) {
}
}
/*
* smb_kdoor_clnt_upcall
*
* This function will make a door up-call to the server function
* associated with the door descriptor fp. The specified door
* request buffer (i.e. argp) will be passed as the argument to the
* door_ki_upcall(). Upon success, the result buffer is returned. Otherwise,
* NULL pointer is returned. The size of the result buffer is returned
* via rbufsize.
*/
char *
{
int err;
if (!argp) {
return (NULL);
}
SIZE_MAX, 0)) != 0) {
return (NULL);
}
*rbufsize = 0;
return (NULL);
}
}