X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/92f6e64a6da763c45ff9f4ab5eafcab3d8766dcb..b60166b327a9108b07e3069fa6568a451529ffd9:/lunaix-os/includes/lunaix/iopoll.h diff --git a/lunaix-os/includes/lunaix/iopoll.h b/lunaix-os/includes/lunaix/iopoll.h index cdc6d79..dae362c 100644 --- a/lunaix-os/includes/lunaix/iopoll.h +++ b/lunaix-os/includes/lunaix/iopoll.h @@ -6,7 +6,9 @@ #include -struct v_fd; // +struct thread; // +struct proc_info; // +struct v_fd; // typedef struct llist_header poll_evt_q; @@ -21,7 +23,7 @@ struct iopoller { poll_evt_q evt_listener; struct v_file* file_ref; - pid_t pid; + struct thread* thread; }; struct iopoll @@ -49,13 +51,13 @@ void iopoll_init(struct iopoll*); void -iopoll_free(pid_t, struct iopoll*); +iopoll_free(struct proc_info*); int -iopoll_install(pid_t, struct iopoll*, struct v_fd*); +iopoll_install(struct thread* thread, struct v_fd* fd); int -iopoll_remove(pid_t, struct iopoll*, int); +iopoll_remove(struct thread*, int); static inline void poll_setrevt(struct poll_info* pinfo, int evt)