]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOMultiMemoryDescriptor.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / iokit / IOKit / IOMultiMemoryDescriptor.h
index 995207421054b337606ce8798afc3d5614e0c0c6..4a56dbe8a812c7592ddfa30613e0f8ea54e03f2e 100644 (file)
@@ -30,6 +30,7 @@
 #define _IOMULTIMEMORYDESCRIPTOR_H
 
 #include <IOKit/IOMemoryDescriptor.h>
+#include <libkern/c++/OSPtr.h>
 
 /*! @class IOMultiMemoryDescriptor : public IOMemoryDescriptor
  *   @abstract The IOMultiMemoryDescriptor object describes a memory area made up of several other IOMemoryDescriptors.
@@ -58,7 +59,7 @@ public:
  *   @param asReference If false, the IOMultiMemoryDescriptor object will make a copy of the descriptors array, otherwise, the array will be used in situ, avoiding an extra allocation.
  *   @result The created IOMultiMemoryDescriptor on success, to be released by the caller, or zero on failure. */
 
-       static IOMultiMemoryDescriptor * withDescriptors(
+       static OSPtr<IOMultiMemoryDescriptor>  withDescriptors(
                IOMemoryDescriptor ** descriptors,
                UInt32                withCount,
                IODirection           withDirection,
@@ -108,6 +109,8 @@ public:
 
        virtual IOReturn setPurgeable(IOOptionBits newState, IOOptionBits * oldState) APPLE_KEXT_OVERRIDE;
 
+       IOReturn setOwnership(task_t newOwner, int newLedgerTag, IOOptionBits newOptions);
+
 /*! @function getPageCounts
  *   @abstract Retrieve the number of resident and/or dirty pages encompassed by an IOMemoryDescriptor.
  *   @discussion This method returns the number of resident and/or dirty pages encompassed by an IOMemoryDescriptor.