Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/kapi/src/tee/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(target_arch = "x86_64")]
pub mod x86_64;
4 changes: 4 additions & 0 deletions api/kapi/src/tee/arch/x86_64/hygon_csv_bindings.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

// automatically generated by rust-bindgen 0.69.5

#[repr(C)]
Expand Down
4 changes: 4 additions & 0 deletions api/kapi/src/tee/arch/x86_64/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(feature = "x86_csv")]
pub mod hygon_csv;
#[cfg(feature = "x86_csv")]
Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/src/auxv.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use zerocopy::{Immutable, IntoBytes};

/// Represents the type of an auxiliary vector entry.
Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/src/info.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! ELF information parsed from the ELF file

use alloc::vec::Vec;
Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#![cfg_attr(not(test), no_std)]
#![doc = include_str!("../README.md")]

Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/src/user_stack.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Initialize the user stack for the application
//!
//! The structure of the user stack is described in the following figure:
Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/tests/test_dynamic.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[test]
fn test_elf_parser() {
let elf_bytes = include_bytes!("ld-linux-x86-64.so.2");
Expand Down
4 changes: 4 additions & 0 deletions core/kernel_elf_parser/tests/test_static.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use kernel_elf_parser::ELFParser;

#[test]
Expand Down
4 changes: 4 additions & 0 deletions core/kpoll/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for kpoll using the unittest framework.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions core/ksync/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for ksync using the unittest framework.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions core/ktypes/src/lazy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Synchronization primitives for lazy evaluation.
//!
//! Implementation adapted from the `SyncLazy` type of the standard library. See:
Expand Down
4 changes: 4 additions & 0 deletions core/slab_allocator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Slab allocator for `no_std` systems. It uses multiple slabs with blocks of
//! different sizes and a [buddy_system_allocator] for blocks larger than 4096
//! bytes.
Expand Down
4 changes: 4 additions & 0 deletions core/slab_allocator/src/slab.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use alloc::alloc::{AllocError, Layout};

use super::SET_SIZE;
Expand Down
4 changes: 4 additions & 0 deletions core/slab_allocator/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use alloc::alloc::Layout;
use core::mem::{align_of, size_of};

Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#![no_std]
pub mod pmuv3;

Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/pmuv3.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! PMU Counter Configuration Module
use core::sync::atomic::{AtomicBool, Ordering};

Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

// Move to ARM register from system coprocessor register.
// MRS Xd, sysreg "Xd = sysreg"
#[macro_export]
Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[macro_use]
pub mod macros;

Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/pmccfiltr_el0.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use tock_registers::{
interfaces::{Readable, Writeable},
register_bitfields,
Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/pmcr_el0.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use tock_registers::{
interfaces::{Readable, Writeable},
register_bitfields,
Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/pmuserenr_el0.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use tock_registers::{
interfaces::{Readable, Writeable},
register_bitfields,
Expand Down
4 changes: 4 additions & 0 deletions drivers/aarch64-pmuv3/src/regs/regs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use crate::define_pmu_register;
// define_pmu_register!(pmccfiltr_el0, PMCCFILTR_EL0, "PMCCFILTR_EL0");
define_pmu_register!(pmccntr_el0, PMCCNTR_EL0, "PMCCNTR_EL0");
Expand Down
4 changes: 4 additions & 0 deletions drivers/display/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for display drivers using the unittest framework.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions drivers/virtio/src/mock_virtio.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use core::{cell::RefCell, ptr::NonNull};

use virtio_drivers::{
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/boot_sector.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use core::slice;

use crate::{
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/dir.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(all(not(feature = "std"), feature = "alloc", feature = "lfn"))]
use alloc::vec::Vec;
#[cfg(feature = "lfn")]
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/dir_entry.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::string::String;
#[cfg(not(feature = "unicode"))]
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

/// Error enum with all errors that can be returned by functions from this crate
///
/// Generic parameter `T` is a type of external error returned by the user provided storage
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/file.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use core::convert::TryFrom;

use crate::{
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/fs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::string::String;
use core::{
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use crate::error::IoError;

/// Provides IO error as an associated type.
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! A FAT filesystem library implemented in Rust.
//!
//! # Usage
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/log_macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! This module offers a convenient way to enable only a subset of logging levels
//! for just this `fatfs` crate only without changing the logging levels
//! of other crates in a given project.
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/table.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use core::{borrow::BorrowMut, marker::PhantomData};

use crate::{
Expand Down
4 changes: 4 additions & 0 deletions fs/fatfs/src/time.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(feature = "chrono")]
use core::convert::TryFrom;
use core::fmt::Debug;
Expand Down
4 changes: 4 additions & 0 deletions fs/fs-ng-vfs/src/test_path.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for Path and PathBuf.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions fs/fs-ng-vfs/src/test_types.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#![cfg(unittest)]

use unittest::{assert_eq, def_test};
Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/fs/ext4/lwext4/fs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use alloc::sync::Arc;
use core::cell::OnceCell;

Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/fs/ext4/lwext4/inode.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use alloc::{borrow::ToOwned, string::String, sync::Arc};
use core::{any::Any, task::Context};

Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/fs/ext4/lwext4/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

mod fs;
mod inode;
mod util;
Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/fs/ext4/lwext4/util.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

use fs_ng_vfs::{NodeType, VfsError};
use kerrno::LinuxError;
use lwext4_rust::{Ext4Error, InodeType, SystemHal};
Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/fs/ext4/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

#[cfg(feature = "ext4-rsext4")]
mod rsext4;

Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/test_path_resolver.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for PathResolver.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions fs/kfs/src/test_working_context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! Unit tests for WorkingContext.

#![cfg(unittest)]
Expand Down
4 changes: 4 additions & 0 deletions fs/rsext4/src/api.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! # ext4 API
//!
//! 提供 ext4 文件系统的高级 API 接口,包括文件系统挂载、文件操作等功能。
Expand Down
4 changes: 4 additions & 0 deletions fs/rsext4/src/bitmap.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! # 位图操作模块
//!
//! 提供对块和inode位图的操作,用于跟踪块和inode的分配状态。
Expand Down
4 changes: 4 additions & 0 deletions fs/rsext4/src/bitmap_cache.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! 位图缓存模块

use alloc::{collections::BTreeMap, vec::Vec};
Expand Down
4 changes: 4 additions & 0 deletions fs/rsext4/src/blockdev.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! # 块设备实现
//!
//! 定义了块设备的抽象接口和实现,为文件系统提供底层存储支持
Expand Down
4 changes: 4 additions & 0 deletions fs/rsext4/src/blockgroup_description.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! # 块组描述符模块
//!
//! 定义了 ext4 文件系统的块组描述符结构和相关操作。
Expand Down
Loading