Remove iopl and virttophys.

This commit is contained in:
4lDO2
2025-03-31 14:01:00 +02:00
parent 9a1742f3d3
commit 30fed98a46
2 changed files with 0 additions and 21 deletions
-19
View File
@@ -149,16 +149,6 @@ pub unsafe fn futex(
)
}
/// Set the I/O privilege level
///
/// # Errors
///
/// * `EPERM` - `uid != 0`
/// * `EINVAL` - `level > 3`
pub unsafe fn iopl(level: usize) -> Result<usize> {
syscall1(SYS_IOPL, level)
}
/// Create a link to a file
pub unsafe fn link(old: *const u8, new: *const u8) -> Result<usize> {
syscall2(SYS_LINK, old as usize, new as usize)
@@ -246,15 +236,6 @@ pub fn unlink<T: AsRef<str>>(path: T) -> Result<usize> {
}
}
/// Convert a virtual address to a physical one
///
/// # Errors
///
/// * `EPERM` - `uid != 0`
pub unsafe fn virttophys(virtual_address: usize) -> Result<usize> {
syscall1(SYS_VIRTTOPHYS, virtual_address)
}
/// Write a buffer to a file descriptor
///
/// The kernel will attempt to write the bytes in `buf` to the file descriptor `fd`, returning
-2
View File
@@ -69,10 +69,8 @@ pub const KSMSG_CANCEL: usize = SYS_CLASS_FILE | 76;
pub const SYS_CLOCK_GETTIME: usize = 265;
pub const SYS_FUTEX: usize = 240;
pub const SYS_IOPL: usize = 110;
pub const SYS_SIGDEQUEUE: usize = 102;
pub const SYS_MPROTECT: usize = 125;
pub const SYS_MKNS: usize = 984;
pub const SYS_NANOSLEEP: usize = 162;
pub const SYS_VIRTTOPHYS: usize = 949;
pub const SYS_YIELD: usize = 158;