ReactOS  0.4.14-dev-552-g2fad488
usb_request.cpp File Reference
#include "usbuhci.h"
#include <debug.h>
Include dependency graph for usb_request.cpp:

Go to the source code of this file.

Classes

class  CUSBRequest
 

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI InternalCreateUSBRequest (PUSBREQUEST *OutRequest)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file usb_request.cpp.

Function Documentation

◆ InternalCreateUSBRequest()

NTSTATUS NTAPI InternalCreateUSBRequest ( PUSBREQUEST OutRequest)

Definition at line 1415 of file usb_request.cpp.

1417 {
1418  PUSBREQUEST This;
1419 
1420  //
1421  // allocate requests
1422  //
1424  if (!This)
1425  {
1426  //
1427  // failed to allocate
1428  //
1430  }
1431 
1432  //
1433  // add reference count
1434  //
1435  This->AddRef();
1436 
1437  //
1438  // return result
1439  //
1440  *OutRequest = (PUSBREQUEST)This;
1441 
1442  //
1443  // done
1444  //
1445  return STATUS_SUCCESS;
1446 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_USBUHCI
Definition: usbuhci.h:26
IUSBRequest * PUSBREQUEST
return STATUS_SUCCESS
Definition: btrfs.c:2938