Print this page
5513 KM_NORMALPRI should be documented in kmem_alloc(9f) and kmem_cache_create(9f) man pages
14465 Present KM_NOSLEEP_LAZY as documented interface
Change-Id: I002ec28ddf390650f1fcba1ca94f6abfdb241439

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/usb/clients/ccid/ccid.c
          +++ new/usr/src/uts/common/io/usb/clients/ccid/ccid.c
↓ open down ↓ 1628 lines elided ↑ open up ↑
1629 1629                  rtype = CCID_RESPONSE_DATA_CLOCK;
1630 1630                  break;
1631 1631          default:
1632 1632                  return (EINVAL);
1633 1633          }
1634 1634  
1635 1635          if (block) {
1636 1636                  kmflag = KM_SLEEP;
1637 1637                  usbflag = USB_FLAGS_SLEEP;
1638 1638          } else {
1639      -                kmflag = KM_NOSLEEP | KM_NORMALPRI;
     1639 +                kmflag = KM_NOSLEEP_LAZY;
1640 1640                  usbflag = 0;
1641 1641          }
1642 1642  
1643 1643          if (datasz + sizeof (ccid_header_t) < datasz)
1644 1644                  return (EINVAL);
1645 1645          if (datasz + sizeof (ccid_header_t) > ccid->ccid_bufsize)
1646 1646                  return (EINVAL);
1647 1647  
1648 1648          cc = kmem_zalloc(sizeof (ccid_command_t), kmflag);
1649 1649          if (cc == NULL)
↓ open down ↓ 2771 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX