mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 08:06:31 +00:00
VirtIO网卡能够正常发送、接收数据 (#204)
* virtio-net小修改 * 移动volatile.rs到libs文件夹 * 使用virtio-drivers 0.3.0 * bugfix: 初始化BAR之后,未正确设置command register的问题 --------- Co-authored-by: longjin <longjin@dragonos.org>
This commit is contained in:
@ -10,14 +10,15 @@ use alloc::{
|
||||
|
||||
use crate::{
|
||||
filesystem::vfs::{
|
||||
core::generate_inode_id, file::{FilePrivateData, FileMode}, FileSystem, FileType, IndexNode, InodeId,
|
||||
Metadata, PollStatus,
|
||||
core::generate_inode_id,
|
||||
file::{FileMode, FilePrivateData},
|
||||
FileSystem, FileType, IndexNode, InodeId, Metadata, PollStatus,
|
||||
},
|
||||
include::bindings::bindings::{
|
||||
EFAULT, EINVAL, EISDIR, ENOENT, ENOSPC, ENOTDIR, ENOTEMPTY, ENOTSUP, EPERM, EROFS,
|
||||
},
|
||||
io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
|
||||
kdebug, kerror,
|
||||
kerror,
|
||||
libs::{
|
||||
spinlock::{SpinLock, SpinLockGuard},
|
||||
vec_cursor::VecCursor,
|
||||
@ -1539,7 +1540,6 @@ impl IndexNode for LockedFATInode {
|
||||
let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true);
|
||||
drop(target_guard);
|
||||
return r;
|
||||
|
||||
}
|
||||
|
||||
fn rmdir(&self, name: &str) -> Result<(), i32> {
|
||||
|
Reference in New Issue
Block a user