smb_rq.c (02d09e03) | smb_rq.c (148c5f43) |
---|---|
1/* 2 * Copyright (c) 2000-2001, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: smb_rq.c,v 1.29 2005/02/11 01:44:17 lindak Exp $ 33 */ 34 35/* | 1/* 2 * Copyright (c) 2000-2001, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: smb_rq.c,v 1.29 2005/02/11 01:44:17 lindak Exp $ 33 */ 34 35/* |
36 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 37 * Use is subject to license terms. | 36 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/time.h> 43#include <sys/kmem.h> 44#include <sys/proc.h> 45#include <sys/lock.h> --- 593 unchanged lines hidden (view full) --- 639 md_done(&t2p->t2_rparam); 640 md_done(&t2p->t2_rdata); 641 mutex_destroy(&t2p->t2_lock); 642 cv_destroy(&t2p->t2_cond); 643 if (t2p->t2_flags & SMBT2_ALLOCED) 644 kmem_free(t2p, sizeof (*t2p)); 645} 646 | 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/time.h> 42#include <sys/kmem.h> 43#include <sys/proc.h> 44#include <sys/lock.h> --- 593 unchanged lines hidden (view full) --- 638 md_done(&t2p->t2_rparam); 639 md_done(&t2p->t2_rdata); 640 mutex_destroy(&t2p->t2_lock); 641 cv_destroy(&t2p->t2_cond); 642 if (t2p->t2_flags & SMBT2_ALLOCED) 643 kmem_free(t2p, sizeof (*t2p)); 644} 645 |
647u_int32_t 648smb_t2_err(struct smb_t2rq *t2p) 649{ 650 /* mask off "severity" and the "component" bit */ 651 return (t2p->t2_sr_error & ~(0xe0000000)); 652} 653 | |
654void 655smb_nt_done(struct smb_ntrq *ntp) 656{ 657 mb_done(&ntp->nt_tsetup); 658 mb_done(&ntp->nt_tparam); 659 mb_done(&ntp->nt_tdata); 660 md_done(&ntp->nt_rparam); 661 md_done(&ntp->nt_rdata); --- 787 unchanged lines hidden --- | 646void 647smb_nt_done(struct smb_ntrq *ntp) 648{ 649 mb_done(&ntp->nt_tsetup); 650 mb_done(&ntp->nt_tparam); 651 mb_done(&ntp->nt_tdata); 652 md_done(&ntp->nt_rparam); 653 md_done(&ntp->nt_rdata); --- 787 unchanged lines hidden --- |