Print this page
8527 tty buffer/queue sizes should be larger

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/pts.c
          +++ new/usr/src/uts/common/io/pts.c
↓ open down ↓ 131 lines elided ↑ open up ↑
 132  132  static void ptsrsrv(queue_t *);
 133  133  static void ptswsrv(queue_t *);
 134  134  
 135  135  /*
 136  136   * Slave Stream Pseudo Terminal Module: stream data structure definitions
 137  137   */
 138  138  static struct module_info pts_info = {
 139  139          0xface,
 140  140          "pts",
 141  141          0,
 142      -        512,
 143      -        512,
      142 +        _TTY_BUFSIZ,
      143 +        _TTY_BUFSIZ,
 144  144          128
 145  145  };
 146  146  
 147  147  static struct qinit ptsrint = {
 148  148          NULL,
 149  149          (int (*)()) ptsrsrv,
 150  150          ptsopen,
 151  151          ptsclose,
 152  152          NULL,
 153  153          &pts_info,
↓ open down ↓ 20 lines elided ↑ open up ↑
 174  174  static int pts_devinfo(dev_info_t *, ddi_info_cmd_t, void *, void **);
 175  175  static int pts_attach(dev_info_t *, ddi_attach_cmd_t);
 176  176  static int pts_detach(dev_info_t *, ddi_detach_cmd_t);
 177  177  
 178  178  #define PTS_CONF_FLAG   (D_NEW | D_MP)
 179  179  
 180  180  /*
 181  181   * this will define (struct cb_ops cb_pts_ops) and (struct dev_ops pts_ops)
 182  182   */
 183  183  DDI_DEFINE_STREAM_OPS(pts_ops, nulldev, nulldev,        \
 184      -        pts_attach, pts_detach, nodev,                  \
 185      -        pts_devinfo, PTS_CONF_FLAG, &ptsinfo, ddi_quiesce_not_supported);
      184 +    pts_attach, pts_detach, nodev,                      \
      185 +    pts_devinfo, PTS_CONF_FLAG, &ptsinfo, ddi_quiesce_not_supported);
 186  186  
 187  187  /*
 188  188   * Module linkage information for the kernel.
 189  189   */
 190  190  
 191  191  static struct modldrv modldrv = {
 192  192          &mod_driverops, /* Type of module.  This one is a pseudo driver */
 193  193          "Slave Stream Pseudo Terminal driver 'pts'",
 194  194          &pts_ops,       /* driver ops */
 195  195  };
↓ open down ↓ 206 lines elided ↑ open up ↑
 402  402  
 403  403          /*
 404  404           * set up hi/lo water marks on stream head read queue
 405  405           * and add controlling tty if not set
 406  406           */
 407  407  
 408  408          mop->b_datap->db_type = M_SETOPTS;
 409  409          mop->b_wptr += sizeof (struct stroptions);
 410  410          sop = (struct stroptions *)mop->b_rptr;
 411  411          sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY;
 412      -        sop->so_hiwat = 512;
      412 +        sop->so_hiwat = _TTY_BUFSIZ;
 413  413          sop->so_lowat = 256;
 414  414          putnext(rqp, mop);
 415  415  
 416  416          return (0);
 417  417  }
 418  418  
 419  419  
 420  420  
 421  421  /*
 422  422   * Find the address to private data identifying the slave's write
↓ open down ↓ 324 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX