diff --git a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h index 90aa940f6f..3b734489f5 100644 --- a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h +++ b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h @@ -23,6 +23,7 @@ public: void SetDevice(KDiskDevice *device); KDiskDevice *Device() const; + int32 ActiveJobIndex() const; KDiskDeviceJob *ActiveJob() const; // list of scheduled jobs diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp index 1116c046f8..6aa89bfdd0 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp @@ -97,6 +97,13 @@ KDiskDeviceJobQueue::Device() const return fDevice; } +// ActiveJobIndex +int32 +KDiskDeviceJobQueue::ActiveJobIndex() const +{ + return fActiveJob; +} + // ActiveJob KDiskDeviceJob * KDiskDeviceJobQueue::ActiveJob() const