Skip to content

Commit 63f9896

Browse files
mkroeningfogti
andcommitted
docs: don't mention helper items
This makes the docs more concise. Co-authored-by: Έλλεν Εμίλια Άννα Zscheile <[email protected]>
1 parent 054d55d commit 63f9896

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

src/arch/x86_64/kernel/apic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ fn detect_from_acpi() -> Result<PhysAddr, ()> {
384384
Ok(PhysAddr::new(madt_header.local_apic_address.into()))
385385
}
386386

387-
/// Helper function to search Floating Pointer Structure of the Multiprocessing Specification
387+
/// Search Floating Pointer Structure of the Multiprocessing Specification
388388
fn search_mp_floating(memory_range: AddrRange<PhysAddr>) -> Result<&'static ApicMP, ()> {
389389
let layout = PageLayout::from_size(BasePageSize::SIZE as usize).unwrap();
390390
let page_range = PageBox::new(layout).unwrap();
@@ -415,7 +415,7 @@ fn search_mp_floating(memory_range: AddrRange<PhysAddr>) -> Result<&'static Apic
415415
Err(())
416416
}
417417

418-
/// Helper function to detect APIC by the Multiprocessor Specification
418+
/// Detect APIC by the Multiprocessor Specification
419419
fn detect_from_mp() -> Result<PhysAddr, ()> {
420420
let mp_float = if let Ok(mpf) = search_mp_floating(
421421
AddrRange::new(PhysAddr::new(0x9f000u64), PhysAddr::new(0xa0000u64)).unwrap(),

src/arch/x86_64/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use x86_64::registers::segmentation::SegmentSelector;
66

77
use crate::arch::mm::paging::ExceptionStackFrame;
88

9-
/// Helper function to swap the GS register, if the user-space is
10-
/// is interrupted.
9+
/// Swap the GS register, if the user-space is is interrupted.
1110
#[cfg(feature = "common-os")]
1211
#[inline(always)]
1312
pub(crate) fn swapgs(stack_frame: &ExceptionStackFrame) {

src/fs/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
6565
Err(Errno::Nosys)
6666
}
6767

68-
/// Helper function to create a new directory node
68+
/// Create a new directory node
6969
fn traverse_mkdir(
7070
&self,
7171
_components: &mut Vec<&str>,
@@ -74,32 +74,32 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
7474
Err(Errno::Nosys)
7575
}
7676

77-
/// Helper function to delete a directory node
77+
/// Delete a directory node
7878
fn traverse_rmdir(&self, _components: &mut Vec<&str>) -> io::Result<()> {
7979
Err(Errno::Nosys)
8080
}
8181

82-
/// Helper function to remove the specified file
82+
/// Remove the specified file
8383
fn traverse_unlink(&self, _components: &mut Vec<&str>) -> io::Result<()> {
8484
Err(Errno::Nosys)
8585
}
8686

87-
/// Helper function to open a directory
87+
/// Open a directory
8888
fn traverse_readdir(&self, _components: &mut Vec<&str>) -> io::Result<Vec<DirectoryEntry>> {
8989
Err(Errno::Nosys)
9090
}
9191

92-
/// Helper function to get file status
92+
/// Get file status
9393
fn traverse_lstat(&self, _components: &mut Vec<&str>) -> io::Result<FileAttr> {
9494
Err(Errno::Nosys)
9595
}
9696

97-
/// Helper function to get file status
97+
/// Get file status
9898
fn traverse_stat(&self, _components: &mut Vec<&str>) -> io::Result<FileAttr> {
9999
Err(Errno::Nosys)
100100
}
101101

102-
/// Helper function to mount a file system
102+
/// Mount a file system
103103
fn traverse_mount(
104104
&self,
105105
_components: &mut Vec<&str>,
@@ -108,7 +108,7 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
108108
Err(Errno::Nosys)
109109
}
110110

111-
/// Helper function to open a file
111+
/// Open a file
112112
fn traverse_open(
113113
&self,
114114
_components: &mut Vec<&str>,
@@ -118,7 +118,7 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
118118
Err(Errno::Nosys)
119119
}
120120

121-
/// Helper function to create a read-only file
121+
/// Create a read-only file
122122
fn traverse_create_file(
123123
&self,
124124
_components: &mut Vec<&str>,

src/syscalls/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ mod dirent_display {
736736

737737
use super::Dirent64;
738738

739-
/// Helperstruct for unsafe formatting of [`Dirent64`]
739+
/// [`Display`] adapter for [`Dirent64`].
740+
///
741+
/// [`Display`]: fmt::Display
740742
pub(super) struct Dirent64Display<'a> {
741743
dirent: &'a Dirent64,
742744
}

0 commit comments

Comments
 (0)