Skip to content

file对epoll add和epoll remove的处理,扩展性较差 #896

@fslongjin

Description

@fslongjin

问题

File对象的add_epoll和remove_epoll方法,里面对文件类型进行了特判。
我认为可以统一处理这个事情,给IndexNode这个trait加add_epoll()和remove_epoll()函数会比较好。

@Godones 另一个问题,对于代码:https://github.com/DragonOS-Community/DragonOS/pull/894/files#diff-08d0c277f75d9d64222b3634cc6c86f177e35c79e7cda7ca1161a1211cde4922R522
不能认为,“不是pipe,且不是socket的,那么这种inode就是EventFdInode”
这个跟上面Add的时候的语义完全就对应不上,需要修改。

抄送:@GnoCiYeH @chiichen

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions