Print this page
10097 indenting fixes in usr/src/{lib,common}


   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 #pragma ident   "%Z%%M% %I%     %E% SMI"
  27 




  28 #include <sys/types.h>
  29 #include <sys/stropts.h>
  30 #include <sys/debug.h>
  31 #include <sys/isa_defs.h>
  32 #include <sys/dditypes.h>
  33 #include <sys/ddi_impldefs.h>
  34 #include "devid_impl.h"
  35 
  36 static int devid_str_decode_id(char *devidstr, ddi_devid_t *devidp,
  37     char **minor_namep, impl_devid_t *id);
  38 
  39 
  40 /*
  41  * Validate device id.
  42  */
  43 int
  44 #ifdef  _KERNEL
  45 ddi_devid_valid(ddi_devid_t devid)
  46 #else   /* !_KERNEL */
  47 devid_valid(ddi_devid_t devid)




   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */

  26 
  27 /*
  28  * Copyright (c) 2018, Joyent, Inc.
  29  */
  30 
  31 #include <sys/types.h>
  32 #include <sys/stropts.h>
  33 #include <sys/debug.h>
  34 #include <sys/isa_defs.h>
  35 #include <sys/dditypes.h>
  36 #include <sys/ddi_impldefs.h>
  37 #include "devid_impl.h"
  38 
  39 static int devid_str_decode_id(char *devidstr, ddi_devid_t *devidp,
  40     char **minor_namep, impl_devid_t *id);
  41 
  42 
  43 /*
  44  * Validate device id.
  45  */
  46 int
  47 #ifdef  _KERNEL
  48 ddi_devid_valid(ddi_devid_t devid)
  49 #else   /* !_KERNEL */
  50 devid_valid(ddi_devid_t devid)