tools/usb_gadget/linux_gadgetfs.py
def HaltEndpoint(self, endpoint_addr):
    """Signal a stall condition on the given endpoint."""
    fd, _ = self._ep_fds[endpoint_addr]
    # Reverse I/O direction sets the halt condition on the pipe.
    try:
      if endpoint_addr & usb_constants.Dir.IN:
        os.read(fd, 0)
      else:
        os.write(fd, '')
    except OSError, e:
      # gadgetfs always returns EBADMSG which we should ignore.
      if e.errno != errno.EBADMSG:
        raise
Signal a stall condition on the given endpoint.
Signal a stall condition on the given endpoint.
Signal a stall condition on the given endpoint .
def HaltEndpoint(self, endpoint_addr):
    fd, _ = self._ep_fds[endpoint_addr]
    try:
      if endpoint_addr & usb_constants.Dir.IN:
        os.read(fd, 0)
      else:
        os.write(fd, '')
    except OSError, e:
      if e.errno != errno.EBADMSG:
        raise
def HaltEndpoint ( self , endpoint_addr ) : fd , _ = self . _ep_fds [ endpoint_addr ] try : if endpoint_addr & usb_constants . Dir . IN : os . read ( fd , 0 ) else : os . write ( fd , '' ) except OSError , e : if e . errno != errno . EBADMSG : raise
Signal a stall condition on the given endpoint.
Signal a stall condition on the given endpoint .
"""Signal a stall condition on the given endpoint.""" # Reverse I/O direction sets the halt condition on the pipe. # gadgetfs always returns EBADMSG which we should ignore.
self
endpoint_addr