Print this page
OS-3752 Increase IOV_MAX to at least 1024

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/stream.h
          +++ new/usr/src/uts/common/sys/stream.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2015 Joyent, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  
  30   31  #ifndef _SYS_STREAM_H
  31   32  #define _SYS_STREAM_H
  32   33  
  33   34  /*
↓ open down ↓ 587 lines elided ↑ open up ↑
 621  622  #define SO_STRHOLD      0x020000        /* No longer implemented */
 622  623  #define SO_ERROPT       0x040000        /* set error option */
 623  624  #define SO_COPYOPT      0x080000        /* copy option(s) present */
 624  625  #define SO_MAXBLK       0x100000        /* set maximum message block size */
 625  626  #define SO_TAIL         0x200000        /* set the extra allocated space */
 626  627  
 627  628  #ifdef _KERNEL
 628  629  /*
 629  630   * Structure for rw (read/write) procedure calls. A pointer
 630  631   * to a struiod_t is passed as a parameter to the rwnext() call.
 631      - *
 632      - * Note: DEF_IOV_MAX is defined and used as it is in "fs/vncalls.c"
 633      - *       as there isn't a formal definition of IOV_MAX ???
 634  632   */
 635      -#define DEF_IOV_MAX     16
 636      -
 637  633  typedef struct struiod {
 638  634          mblk_t          *d_mp;          /* pointer to mblk (chain) */
 639  635          uio_t           d_uio;          /* uio info */
 640      -        iovec_t d_iov[DEF_IOV_MAX];     /* iov referenced by uio */
      636 +        iovec_t         *d_iov;         /* iov referenced by uio */
 641  637  } struiod_t;
 642  638  
 643  639  /*
 644  640   * Structure for information procedure calls.
 645  641   */
 646  642  typedef struct infod {
 647  643          unsigned char   d_cmd;          /* info info request command */
 648  644          unsigned char   d_res;          /* info info command results */
 649  645          int             d_bytes;        /* mblk(s) byte count */
 650  646          int             d_count;        /* count of mblk(s) */
↓ open down ↓ 200 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX