none
What's the difference between URB and Read/Write ? RRS feed

  • Question

  • There are functions :

    WdfUsbTargetPipeFormatRequestForRead(),

    WdfUsbTargetPipeFormatRequestForUrb(),

    WdfUsbTargetPipeFormatRequestForWrite()

    Does USB driver not always use URB to read/write data ??

    URB: USB Request Block

    Reference:  https://msdn.microsoft.com/en-us/library/windows/hardware/ff537056(v=vs.85).aspx


    Marcus

    Wednesday, January 18, 2017 2:09 PM

Answers

  • The basic interface to the USB stack uses URBs. WDF encapsulates that and hides it from you for 90% of the use cases; however, for some infrequently used cases, such as chained MDLs, you need to use URBs. Pro tip: Don't use URBs unless there isn't a WDF way to do what you want

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Wednesday, January 18, 2017 6:59 PM
    Moderator