40d9375b6b
ready for merge in master ( #964 )
...
uevent should be format
Enum of smoltcp socket should be optimized.
need to add interface for routing subsys
actix is still not abled to run.
clean some casual added code to other places
2024-10-10 17:53:39 +08:00
e32effb150
feat(driver): 把virtio添加到sysfs ( #752 )
2024-04-22 15:11:47 +08:00
6046f77591
Patch socketpair ( #576 )
...
* 将sockets分成inet和unix域
- 添加File端点
- 添加SocketPair trait并将Socket trait中的pair相关方法移动
- 添加对SockAddrUn的处理
* 精简SocketHandleItem
* 重构socketpair相关逻辑
- 将File端点换成Inode端点
- 尝试使用SocketInode进行socketpair(未成功)
* 将SocketPair trait合并到Socket trait中,去除downcast
2024-03-23 15:56:49 +08:00
b5b571e026
修复内核的clippy检查报错 ( #637 )
...
修复内核的clippy检查报错
---------
Co-authored-by: Samuel Dai <947309196@qq.com >
Co-authored-by: Donkey Kane <109840258+xiaolin2004@users.noreply.github.com >
Co-authored-by: themildwind <107623059+themildwind@users.noreply.github.com >
Co-authored-by: GnoCiYeH <heyicong@dragonos.org >
Co-authored-by: MemoryShore <105195940+MemoryShore@users.noreply.github.com >
Co-authored-by: 曾俊 <110876916+ZZJJWarth@users.noreply.github.com >
Co-authored-by: sun5etop <146408999+sun5etop@users.noreply.github.com >
Co-authored-by: hmt <114841534+1037827920@users.noreply.github.com >
Co-authored-by: laokengwt <143977175+laokengwt@users.noreply.github.com >
Co-authored-by: TTaq <103996388+TTaq@users.noreply.github.com >
Co-authored-by: Jomo <2512364506@qq.com >
Co-authored-by: Samuel Dai <samuka007@qq.com >
Co-authored-by: sspphh <112558065+sspphh@users.noreply.github.com >
2024-03-22 23:26:39 +08:00
4ad52e57e6
添加socketpair ( #505 )
...
* 添加对socketpair系统调用的处理
---------
Co-authored-by: LoGin <longjin@DragonOS.org >
2024-02-07 18:06:15 +08:00
e7071df6a4
把opengrok.ringotek.cn替换为code.dragonos.org.cn ( #484 )
2024-01-01 11:53:49 +08:00
5e948c5650
修正pipe逻辑,将pipe接入epoll。 ( #478 )
2023-12-27 15:02:29 +08:00
0d6cf65aa1
Patch fix sched and net lockdep error ( #479 )
...
- fix: 修复调度器,软中断,定时器,网络子系统的部分锁的使用不符合锁依赖安全规范的问题
- fix: 修复创建pcb时内核栈爆栈的问题
- 把异常的trap gate改成intr gate
---------
Co-authored-by: GnoCiYeH <heyicong@dragonos.org >
2023-12-27 14:27:12 +08:00
91e9d4ab55
实现unified-init库,支持收集初始化函数到一个数组,并统一初始化 ( #474 )
...
* 添加“统一初始化”的过程宏,并把SystemError独立成crate
* 使用unified-init来初始化fbmem
* 更新workflow,增加内核自动化静态测试
2023-12-25 23:12:27 +08:00
406099704e
增加epoll机制 ( #455 )
...
* ## 增加epoll机制
- 增加epoll机制
- 添加事件等待队列,提升socket性能
- 优化poll,删除不能poll的文件系统中的poll方法
* 添加细节注释
* 修复文件关闭后epoll还持有对应描述符的文件弱引用的bug
* 将EPollEvent设计为POSIX标准
* 修改s到us转换的计算错误
2023-12-25 18:08:12 +08:00
393f691574
增加gettid以及线程组group leader相关的逻辑 ( #430 )
...
* 增加gettid以及线程组group leader相关的逻辑
2023-11-09 16:48:45 +08:00
cde5492f72
新增网络socket的系统调用接口 ( #247 )
...
1.修复spinlock忘记恢复rflags的问题
2.WaitQueue增加wakeup_all的功能
3.完善tcp,udp,raw socket
4.把PollStatus结构体改为使用bitflags
5.新增iovec结构体
6.完成网络的系统调用
7.在bootstrap里面添加dnsmasq bridge-utils iptables
---------
Co-authored-by: guanjinquan <1666320330@qq.com >
2023-04-19 18:05:02 +08:00
13776c114b
增加对dhcpv4的支持(tcp、udp socket已写好,但由于缺少epoll机制,尚未完整测试) ( #237 )
...
* 为virtio网卡完成smoltcp的phy层配置
* raw socket
* 初步写完udp和tcp socket
* 能够正常通过dhcp获取ipv4地址(具有全局iface btree)
---------
Co-authored-by: guanjinquan <1666320330@qq.com >
2023-04-10 20:22:39 +08:00
4454d1a2dd
新增SystemError枚举类型,使得错误处理更清晰 ( #205 )
2023-03-18 20:26:05 +08:00