Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asterinas/vostd
/ functions
Functions
7,307 in github.com/asterinas/vostd
⨍
Functions
7,307
◇
Types & classes
1,661
↓ 3 callers
Method
read_bytes_at
(&self, offset: usize, buf: &mut [u8])
kernel/src/fs/file_handle.rs:127
↓ 3 callers
Function
read_clock
Reads the time of a clock specified by the input clock ID. If the clock ID does not support, this function will return `Err`.
kernel/src/syscall/clock_gettime.rs:114
↓ 3 callers
Method
read_device_features
(&self)
kernel/comps/virtio/src/transport/pci/device.rs:150
↓ 3 callers
Method
read_device_id
Reads the device ID from the I/O memory.
kernel/comps/virtio/src/transport/mmio/bus/common_device.rs:43
↓ 3 callers
Method
read_fallible_with_max_len
Reads data from the `VmWriter` to the `RingBuffer` with the maximum length. Returns the number of bytes read.
kernel/src/util/ring_buffer.rs:432
↓ 3 callers
Function
read_file
test/src/apps/overlayfs/ovl_test.c:52
↓ 3 callers
Method
read_jiffies
Reads the current time of this clock in [`Jiffies`].
kernel/src/time/clocks/cpu_clock.rs:41
↓ 3 callers
Method
read_meta_at
(&self, offset: usize, buf: &mut [u8])
kernel/src/fs/exfat/fs.rs:164
↓ 3 callers
Method
read_next_fat
(&self, cluster: ClusterID)
kernel/src/fs/exfat/fs.rs:169
↓ 3 callers
Method
read_status
(&self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:154
↓ 3 callers
Method
read_version
Reads the version number from the I/O memory.
kernel/comps/virtio/src/transport/mmio/bus/common_device.rs:48
↓ 3 callers
Function
read_xattr_name_cstr_from_user
( name_ptr: Vaddr, user_space: &CurrentUserSpace, )
kernel/src/syscall/setxattr.rs:154
↓ 3 callers
Method
readahead_range
(&self)
kernel/src/fs/utils/page_cache.rs:185
↓ 3 callers
Method
reader
Creates a reader to read data from the user space of the current task. Returns `Err` if the `vaddr` and `len` do not represent a user space memory ra
kernel/src/context.rs:83
↓ 3 callers
Method
reader
(&self)
kernel/comps/network/src/dma_pool.rs:238
↓ 3 callers
Method
reader
Returns a reader to read data from it.
kernel/comps/block/src/bio.rs:489
↓ 3 callers
Method
readers_mut
Returns mutable reference to [`VmReader`]s.
kernel/src/util/iovec.rs:108
↓ 3 callers
Method
receive_data
(&mut self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:195
↓ 3 callers
Function
reclaimable_memory_region
()
ostd/src/arch/x86/boot/smp.rs:141
↓ 3 callers
Method
recover_from
Recover from another `CryptoBlob`. If `CryptoBlob` doesn't have a valid version ID, e.g., payload decryption failed when `read`, user could call this
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_blob.rs:229
↓ 3 callers
Method
recvmsg
( &self, writer: &mut dyn MultiWrite, flags: SendRecvFlags, )
kernel/src/net/socket/ip/stream/mod.rs:562
↓ 3 callers
Method
relocated_addr_of
Gets the relocated address of an address in the original range. If the provided address is not in the original range, it will return `None`.
kernel/src/process/program_loader/elf/load_elf.rs:269
↓ 3 callers
Method
remove_connecting_socket
Remove a connecting socket
kernel/src/net/socket/vsock/common.rs:113
↓ 3 callers
Method
remove_entry_by_name
(&mut self, name: &str)
kernel/src/fs/utils/direntry_vec.rs:25
↓ 3 callers
Method
remove_mapping
(&self, range: Range<usize>)
kernel/src/vm/vmar/mod.rs:550
↓ 3 callers
Method
remove_member
Removes a member from the multicast group.
kernel/src/net/socket/netlink/table/multicast.rs:27
↓ 3 callers
Method
remove_process
Removes a process from the process group. The caller needs to ensure that the process previously belonged to the process group, but now doesn't.
kernel/src/process/process/process_group.rs:104
↓ 3 callers
Method
remove_process_group
Removes a process group from the session. The caller needs to ensure that the process group previously belonged to the session, but now doesn't.
kernel/src/process/process/session.rs:119
↓ 3 callers
Function
removexattr
( file_ctx: XattrFileCtx, name_ptr: Vaddr, user_space: &CurrentUserSpace, ctx: &Context, )
kernel/src/syscall/removexattr.rs:44
↓ 3 callers
Function
repo_dir
(repo: &Repository)
scripts/src/git.rs:33
↓ 3 callers
Method
reset
Send a reset packet to reset a connection
kernel/src/net/socket/vsock/common.rs:167
↓ 3 callers
Method
resize
(&mut self, new_size: usize)
kernel/src/fs/ramfs/fs.rs:231
↓ 3 callers
Method
resize_mapping
Resizes the original mapping. The range of the mapping goes from `map_addr..map_addr + old_size` to `map_addr..map_addr + new_size`. If the new mapp
kernel/src/vm/vmar/mod.rs:101
↓ 3 callers
Method
restrict
(self)
kernel/src/net/socket/unix/cred.rs:64
↓ 3 callers
Method
restrict
(self)
kernel/src/process/credentials/static_cap.rs:40
↓ 3 callers
Method
rgid
(&self)
kernel/src/process/credentials/static_cap.rs:162
↓ 3 callers
Method
robust_list
(&self)
kernel/src/process/posix_thread/thread_local.rs:74
↓ 3 callers
Function
root_mount
()
kernel/src/fs/rootfs.rs:131
↓ 3 callers
Method
root_paddr
(&self)
ostd/src/arch/x86/iommu/dma_remapping/context_table.rs:54
↓ 3 callers
Function
rt_to_static
(prio: RealTimePriority)
kernel/src/syscall/sched_get_priority_max.rs:8
↓ 3 callers
Method
ruid
(&self)
kernel/src/process/credentials/static_cap.rs:52
↓ 3 callers
Method
run
Runs the process.
kernel/src/process/process/mod.rs:227
↓ 3 callers
Method
save
Saves CPU's current FPU context to this instance, if needed.
ostd/src/arch/riscv/cpu/context.rs:278
↓ 3 callers
Method
sb
(&self)
kernel/src/fs/sysfs/fs.rs:51
↓ 3 callers
Method
sched_poll
Returns a reference to the associated [`ScheduleNextPoll`].
kernel/libs/aster-bigtcp/src/iface/iface.rs:82
↓ 3 callers
Function
sem_sets
()
kernel/src/ipc/semaphore/system_v/sem_set.rs:293
↓ 3 callers
Method
send
Sends data to the UART.
ostd/src/arch/loongarch/serial.rs:41
↓ 3 callers
Method
send_ipi
(&self, icr: super::Icr)
ostd/src/arch/x86/kernel/apic/xapic.rs:80
↓ 3 callers
Method
sendmsg
( &self, reader: &mut dyn MultiRead, message_header: MessageHeader, flags: Sen
kernel/src/net/socket/ip/stream/mod.rs:533
↓ 3 callers
Function
session_table_mut
()
kernel/src/process/process_table.rs:112
↓ 3 callers
Method
set
(&self, mut policy: SchedPolicy, update: impl FnOnce(SchedPolicy))
kernel/src/sched/sched_class/policy.rs:79
↓ 3 callers
Method
set_atime
(&mut self, time: Duration)
kernel/src/fs/ext2/inode.rs:1290
↓ 3 callers
Method
set_bg_color
(&mut self, val: Pixel)
kernel/comps/framebuffer/src/ansi_escape.rs:211
↓ 3 callers
Method
set_bit
Set the given bit with one bit. # Panics The `index` must be within the total number of bits. Otherwise, this method panics.
kernel/comps/mlsdisk/src/util/bitmap.rs:76
↓ 3 callers
Function
set_blocking
test/src/apps/network/tcp_err.c:412
↓ 3 callers
Method
set_child_tid
(mut self, set_child_tid: Vaddr)
kernel/src/process/posix_thread/builder.rs:77
↓ 3 callers
Method
set_context
(&self, context: FpuContext)
kernel/src/process/posix_thread/thread_local.rs:160
↓ 3 callers
Method
set_cur_layer
(&mut self, layer: LayerIdx)
kernel/src/fs/overlayfs/fs.rs:1045
↓ 3 callers
Method
set_fg_color
(&mut self, val: Pixel)
kernel/comps/framebuffer/src/ansi_escape.rs:207
↓ 3 callers
Method
set_mode
(&self, mode: InodeMode)
kernel/src/fs/procfs/template/mod.rs:86
↓ 3 callers
Method
set_owner
Set a process (group) as owner of the file descriptor. Such that this process (group) will receive `SIGIO` and `SIGURG` signals for I/O events on the
kernel/src/fs/file_table.rs:332
↓ 3 callers
Method
set_range_used
(&mut self, clusters: Range<ClusterID>, sync: bool)
kernel/src/fs/exfat/bitmap.rs:102
↓ 3 callers
Method
set_rax
(&mut self, rax: usize)
ostd/src/arch/x86/tdx_guest.rs:146
↓ 3 callers
Method
set_record_len
Modifies the distance to the next entry.
kernel/src/fs/ext2/dir.rs:70
↓ 3 callers
Method
set_termios
(&mut self, termios: CTermios)
kernel/src/device/tty/line_discipline.rs:243
↓ 3 callers
Method
set_timer_init_count
(&self, value: u64)
ostd/src/arch/x86/kernel/apic/xapic.rs:101
↓ 3 callers
Method
set_used
(&mut self, cluster: u32, sync: bool)
kernel/src/fs/exfat/bitmap.rs:94
↓ 3 callers
Method
set_vfork_child
Sets whether the process is the vfork child.
kernel/src/process/status.rs:64
↓ 3 callers
Function
setxattr
( file_ctx: XattrFileCtx, name_ptr: Vaddr, value_ptr: Vaddr, value_len: usize, flags: i32,
kernel/src/syscall/setxattr.rs:94
↓ 3 callers
Method
show_attr
Shows the string value of an attribute. Most attributes are textual, rather binary. So using this `show_attr` method is more convenient than the `rea
kernel/comps/systree/src/node.rs:152
↓ 3 callers
Method
shutdown
Shuts down the epoll entry. This method needs to be called in response to `EpollCtl::Del`.
kernel/src/fs/epoll/entry.rs:159
↓ 3 callers
Function
singleton
Returns a reference to the global [`SysFs`] instance. Panics if not initialized.
kernel/src/fs/sysfs/mod.rs:18
↓ 3 callers
Method
size
The size of the file in bytes.
kernel/libs/cpio-decoder/src/lib.rs:257
↓ 3 callers
Method
size
Return the number of records in the table.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:260
↓ 3 callers
Method
size_to_blocks
(&self, size: usize)
kernel/src/fs/ext2/inode.rs:2199
↓ 3 callers
Method
slave
(&self)
kernel/src/device/pty/master.rs:49
↓ 3 callers
Method
split
Splits the mapping at the specified address. The address must be within the mapping and page-aligned. The address must not be either the start or the
kernel/src/vm/vmar/vm_mapping.rs:429
↓ 3 callers
Method
split_free
Splits the buddy chunk into two smaller buddies. # Panics Panics if the buddy chunk is not uniquely free.
osdk/deps/frame-allocator/src/chunk.rs:205
↓ 3 callers
Method
split_range
Splits the mapping at the specified address. There are four conditions: 1. |-outside `range`-| + |------------within `range`------------| 2. |-------
kernel/src/vm/vmar/vm_mapping.rs:476
↓ 3 callers
Function
split_to_chunks
Splits a range into chunks. A chunk must have a `1 << order` size and alignment, so a random page- aligned range might not be a chunk. This function
osdk/deps/frame-allocator/src/chunk.rs:45
↓ 3 callers
Method
sub_assign
Subtracts a value to the per-CPU object in a single instruction. This operation wraps on overflow/underflow. Note that this memory operation will no
ostd/src/cpu/local/cell.rs:172
↓ 3 callers
Function
submit_work_item
Submit a work item to a global work queue.
kernel/src/thread/work_queue/mod.rs:95
↓ 3 callers
Method
sync
(&mut self)
kernel/src/fs/exfat/bitmap.rs:381
↓ 3 callers
Method
sync
(&self)
kernel/comps/network/src/buffer.rs:65
↓ 3 callers
Method
sync
Sync the mutable `MemTable` with the given sync ID.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:110
↓ 3 callers
Method
sync_metadata
(&self, fs_guard: &MutexGuard<()>)
kernel/src/fs/exfat/inode.rs:579
↓ 3 callers
Function
systree_singleton
()
kernel/comps/systree/src/test.rs:111
↓ 3 callers
Method
tail_file_name
(&self)
kernel/src/fs/fs_resolver.rs:378
↓ 3 callers
Method
tail_with
Apply given function to the immutable tail.
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:653
↓ 3 callers
Method
timer
Gets the associated timer.
kernel/src/time/timerfd.rs:71
↓ 3 callers
Function
tlb_flush_addr
(vaddr: Vaddr)
ostd/src/arch/loongarch/mm/mod.rs:79
↓ 3 callers
Method
total_data_nodes
(&self)
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_log.rs:332
↓ 3 callers
Method
total_len
Returns the total length of the attribute (header + payload, excluding padding).
kernel/src/net/socket/netlink/message/attr/mod.rs:76
↓ 3 callers
Method
total_len_with_padding
Returns the total length of the attribute (header + payload, including padding).
kernel/src/net/socket/netlink/message/attr/mod.rs:81
↓ 3 callers
Method
total_size
Gets the total size of free chunks.
osdk/deps/frame-allocator/src/set.rs:25
↓ 3 callers
Method
trim
Trim the blocks before a specified position (exclusive). The purpose of this method is to free some memory used for keeping the MACs of accessible bl
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:185
↓ 3 callers
Method
try_shrink
Attempts to evict some blocks from cache if it exceeds the maximum size.
kernel/src/fs/ext2/indirect_block_cache.rs:99
↓ 3 callers
Method
type_
(&self)
kernel/src/fs/utils/systree_inode.rs:283
↓ 3 callers
Method
type_
(&self)
kernel/src/fs/exfat/inode.rs:1165
↓ 3 callers
Method
type_
(&self)
kernel/src/fs/procfs/template/dir.rs:92
← previous
next →
1,301–1,400 of 7,307, ranked by callers