mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 06:07:52 +00:00
NVServices: Correct CtrlEventWaitSync to block the ipc until timeout.
This commit is contained in:
parent
604dc3f59b
commit
1238b13642
23 changed files with 104 additions and 31 deletions
|
@ -95,7 +95,8 @@ public:
|
|||
/// Opens a device node and returns a file descriptor to it.
|
||||
u32 Open(const std::string& device_name);
|
||||
/// Sends an ioctl command to the specified file descriptor.
|
||||
u32 Ioctl(u32 fd, u32 command, const std::vector<u8>& input, std::vector<u8>& output);
|
||||
u32 Ioctl(u32 fd, u32 command, const std::vector<u8>& input, std::vector<u8>& output,
|
||||
IoctlCtrl& ctrl);
|
||||
/// Closes a device file descriptor and returns operation success.
|
||||
ResultCode Close(u32 fd);
|
||||
|
||||
|
@ -103,6 +104,8 @@ public:
|
|||
|
||||
Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent(const u32 event_id);
|
||||
|
||||
Kernel::SharedPtr<Kernel::WritableEvent> GetEventWriteable(const u32 event_id);
|
||||
|
||||
private:
|
||||
/// Id to use for the next open file descriptor.
|
||||
u32 next_fd = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue