ReactOS  0.4.14-dev-342-gdc047f9
usb_request.cpp File Reference
#include "usbohci.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 1983 of file usb_request.cpp.

1985 {
1986  PUSBREQUEST This;
1987 
1988  //
1989  // allocate requests
1990  //
1992  if (!This)
1993  {
1994  //
1995  // failed to allocate
1996  //
1998  }
1999 
2000  //
2001  // add reference count
2002  //
2003  This->AddRef();
2004 
2005  //
2006  // return result
2007  //
2008  *OutRequest = (PUSBREQUEST)This;
2009 
2010  //
2011  // done
2012  //
2013  return STATUS_SUCCESS;
2014 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_USBOHCI
Definition: usbohci.h:26
IUSBRequest * PUSBREQUEST
return STATUS_SUCCESS
Definition: btrfs.c:2938