Files
compute-runtime/level_zero/sysman/source/linux/hw_device_id_linux.h
Joshua Santosh Ranjan 790ef57c3f [Sysman] Update memory module for zesInit
Related-To: LOCI-4118

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2023-03-15 06:31:43 +01:00

29 lines
566 B
C++

/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/linux/hw_device_id.h"
#include <mutex>
namespace L0 {
namespace Sysman {
class SysmanHwDeviceIdDrm : public NEO::HwDeviceIdDrm {
public:
using NEO::HwDeviceIdDrm::HwDeviceIdDrm;
SysmanHwDeviceIdDrm() = delete;
MOCKABLE_VIRTUAL int openFileDescriptor();
MOCKABLE_VIRTUAL int closeFileDescriptor();
private:
std::mutex fdMutex{};
uint32_t fdRefCounter = 0;
};
} // namespace Sysman
} // namespace L0