1 #ifndef _IOKIT_TESTIOCONNECTMAPMEMORYPORTLEAK45265408_H_ 2 #define _IOKIT_TESTIOCONNECTMAPMEMORYPORTLEAK45265408_H_ 3 4 #include <IOKit/IOService.h> 5 #include <IOKit/IOUserClient.h> 6 #include <IOKit/IOBufferMemoryDescriptor.h> 7 8 #if DEVELOPMENT || DEBUG 9 10 class TestIOConnectMapMemoryPortLeak45265408 : public IOService { 11 OSDeclareDefaultStructors(TestIOConnectMapMemoryPortLeak45265408) 12 13 public: 14 virtual bool start(IOService *provider) override; 15 }; 16 17 class TestIOConnectMapMemoryPortLeak45265408UserClient : public IOUserClient { 18 OSDeclareDefaultStructors(TestIOConnectMapMemoryPortLeak45265408UserClient); 19 20 public: 21 // IOService overrides 22 virtual bool start(IOService *provider) override; 23 virtual void stop(IOService *provider) override; 24 25 // IOUserClient overrides 26 virtual IOReturn clientClose() override; 27 virtual IOReturn clientMemoryForType(UInt32 type, IOOptionBits *flags, IOMemoryDescriptor **memory) override; 28 private: 29 IOBufferMemoryDescriptor * sharedMemory; 30 }; 31 32 #endif /* DEVELOPMENT || DEBUG */ 33 34 #endif /* _IOKIT_TESTIOCONNECTMAPMEMORYPORTLEAK45265408_H_ */ 35