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
↓ 2 callers
Method
rdx
(&self)
ostd/src/arch/x86/tdx_guest.rs:161
↓ 2 callers
Method
read
(&self, writer: &mut VmWriter)
kernel/src/time/timerfd.rs:115
↓ 2 callers
Method
read
Read a block at a specified position. The length of the given buffer should not be smaller than payload_len stored in `Footer`. # Security The auth
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:105
↓ 2 callers
Method
read
Reads one or multiple blocks at a specified position. # Panics This method must be called within a TX. Otherwise, this method panics.
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:389
↓ 2 callers
Method
read32
Reads u32 from the capability.
ostd/src/bus/pci/capability/vendor.rs:59
↓ 2 callers
Function
read_all
test/src/apps/pty/pty_blocking.c:38
↓ 2 callers
Method
read_all
Read all data to the writer.
kernel/libs/cpio-decoder/src/lib.rs:157
↓ 2 callers
Method
read_at
(&self, offset: usize, writer: &mut VmWriter)
kernel/src/fs/inode_handle/mod.rs:86
↓ 2 callers
Method
read_attr
(&self, _name: &str, _writer: &mut VmWriter)
kernel/comps/systree/src/utils.rs:359
↓ 2 callers
Method
read_blocks_async
Reads one or multiple blocks to the segment start from `bid` asynchronously.
kernel/src/fs/ext2/inode.rs:1840
↓ 2 callers
Method
read_config
(&self)
kernel/comps/virtio/src/device/network/config.rs:92
↓ 2 callers
Method
read_configuration
(&mut self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:124
↓ 2 callers
Function
read_cstring_vec
( array_ptr: Vaddr, max_string_number: usize, max_string_len: usize, ctx: &Context, )
kernel/src/syscall/execve.rs:185
↓ 2 callers
Method
read_cycles
Reads current cycles of the `ClockSource`.
kernel/comps/time/src/clocksource.rs:128
↓ 2 callers
Method
read_data_node
(&self, entry: &MhtNodeEntry, node_buf: &mut [u8])
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_log.rs:564
↓ 2 callers
Method
read_extended_capability
Reads the extended Capability of IOMMU
ostd/src/arch/x86/iommu/registers/mod.rs:98
↓ 2 callers
Function
read_filename
(filename_ptr: Vaddr, ctx: &Context)
kernel/src/syscall/execve.rs:178
↓ 2 callers
Method
read_len
(&self)
kernel/src/syscall/getdents64.rs:93
↓ 2 callers
Method
read_multi_blocks
(&self, lba: Lba, bufs: &'a mut [BufMut<'a>])
kernel/comps/mlsdisk/src/layers/5-disk/mlsdisk.rs:409
↓ 2 callers
Method
read_page_async
(&self, idx: usize, frame: &CachePage)
kernel/src/fs/exfat/fs.rs:372
↓ 2 callers
Function
read_random
Reads a hardware generated 64-bit random value. Returns None if no random value was generated.
ostd/src/arch/riscv/mod.rs:56
↓ 2 callers
Method
read_slice
Read a slice of bytes at a specified byte offset.
kernel/comps/mlsdisk/src/layers/0-bio/block_set.rs:22
↓ 2 callers
Method
read_time
(&self)
kernel/src/time/clocks/system_wide.rs:147
↓ 2 callers
Function
read_until_nul_byte
Reads bytes from `reader` into `buffer` until a nul byte is found. This method returns the following values: 1. `Ok(true)`: If a nul byte is found in
kernel/src/context.rs:241
↓ 2 callers
Method
readdir
(&self, visitor: &mut dyn DirentVisitor)
kernel/src/fs/inode_handle/mod.rs:143
↓ 2 callers
Method
readdir_at
(&self, offset: usize, visitor: &mut dyn DirentVisitor)
kernel/src/fs/ext2/inode.rs:605
↓ 2 callers
Method
readdir_inner
(&self, offset: usize)
kernel/src/fs/overlayfs/fs.rs:705
↓ 2 callers
Method
receive
Receive bytes from peer, returns the header
kernel/comps/virtio/src/device/socket/device.rs:260
↓ 2 callers
Method
recv
Receives some data. Polling the iface is _not_ required after this method succeeds.
kernel/libs/aster-bigtcp/src/socket/bound/udp.rs:173
↓ 2 callers
Method
recycle_descriptors
Recycle descriptors in the list specified by head. This will push all linked descriptors at the front of the free list.
kernel/comps/virtio/src/queue.rs:272
↓ 2 callers
Function
register_callback
(callback: &'static KeyboardCallback)
kernel/comps/keyboard/src/lib.rs:30
↓ 2 callers
Function
register_device
(name: String, device: Arc<dyn BlockDevice>)
kernel/comps/block/src/lib.rs:79
↓ 2 callers
Method
register_driver
Registers a MMIO driver to the MMIO bus.
kernel/comps/virtio/src/transport/mmio/bus/bus.rs:43
↓ 2 callers
Method
register_observer
( &self, observer: Weak<dyn Observer<SigEvents>>, filter: SigEventsFilter, )
kernel/src/process/signal/sig_queues.rs:78
↓ 2 callers
Method
register_observer
(&self, observer: Weak<dyn Observer<FdEvents>>)
kernel/src/fs/file_table.rs:190
↓ 2 callers
Method
register_poller
Registers a poller to listen notification for new events. The functionality of this method is a subset of calling [`Self::poll_with`] and providing t
kernel/src/process/signal/poll.rs:159
↓ 2 callers
Function
register_recv_callback
Registers callback which will be called when receiving message. Since the callback will be called in softirq context, the callback function should _n
kernel/comps/network/src/lib.rs:94
↓ 2 callers
Method
register_sigqueue_observer
( &self, observer: Weak<dyn Observer<SigEvents>>, filter: SigEventsFilter, )
kernel/src/process/posix_thread/mod.rs:280
↓ 2 callers
Method
remap
Remaps the original mapping to a new address and/or size. If the new mapping size is smaller than the original mapping size, the extra part will be u
kernel/src/vm/vmar/mod.rs:123
↓ 2 callers
Method
remapping_index
Gets the remapping index of the IRQ line. This method will return `None` if interrupt remapping is disabled or not supported by the architecture.
ostd/src/arch/riscv/irq.rs:27
↓ 2 callers
Method
remove
Removes an interval item from the interval set.
kernel/src/vm/vmar/interval_set.rs:58
↓ 2 callers
Method
remove
(&mut self, pid: Pid)
kernel/src/process/process_table.rs:53
↓ 2 callers
Method
remove
Remove and return the item at position `idx`. Return `None` if `idx` is out of bounds or the item has been removed.
kernel/libs/aster-util/src/slot_vec.rs:97
↓ 2 callers
Method
remove_from_write_set
(&mut self, log_id: RawLogId)
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:853
↓ 2 callers
Function
remove_thread
Removes a posix thread to global thread table
kernel/src/process/posix_thread/thread_table.rs:15
↓ 2 callers
Method
rename_entry_at
(&mut self, old_name: &str, new_name: &str, offset: usize)
kernel/src/fs/ext2/inode.rs:1138
↓ 2 callers
Method
render_pixel
Renders the pixel according to the pixel format of the framebuffer.
kernel/comps/framebuffer/src/framebuffer.rs:103
↓ 2 callers
Function
report_online_and_hw_cpu_id
(cpu_id: u32)
ostd/src/boot/smp.rs:156
↓ 2 callers
Method
request_number
The number of bio requests in waiter. This number will be zero if there are no previous readahead.
kernel/src/fs/utils/page_cache.rs:229
↓ 2 callers
Method
require_major_compaction
Check whether a major compaction is required from `from_level` to its lower level.
kernel/comps/mlsdisk/src/layers/4-lsm/tx_lsm_tree.rs:883
↓ 2 callers
Method
reset
Resets the handle. The observer will be unregistered and will no longer receive events.
kernel/src/process/signal/poll.rs:222
↓ 2 callers
Method
reset
Resets the connection. Polling the iface is _always_ required after this method succeeds. Note that either this method or [`Self::close`] must be ca
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:502
↓ 2 callers
Method
reset_enabled
Marks the epoll entry as not enabled. This method must be called while holding the lock of the event masks and flags. This is the only way to ensure
kernel/src/fs/epoll/entry.rs:258
↓ 2 callers
Method
right
Converts to the right value, if any.
ostd/src/util/either.rs:30
↓ 2 callers
Method
rights
(&self)
kernel/src/vm/vmo/dyn_cap.rs:148
↓ 2 callers
Method
root
Returns a reference to the root node of the tree.
kernel/comps/systree/src/tree.rs:39
↓ 2 callers
Method
rsi
(&self)
ostd/src/arch/x86/tdx_guest.rs:167
↓ 2 callers
Method
run
(&self)
kernel/src/thread/work_queue/worker.rs:74
↓ 2 callers
Method
run_and_test_inherit_from_global
Produces a scheme in which `run` and `test` action settings inherit from the default settings in the provided scheme.
osdk/src/config/scheme/mod.rs:108
↓ 2 callers
Method
same_owner_with
Checks if this lock has the same owner as another lock.
kernel/src/fs/utils/flock.rs:47
↓ 2 callers
Method
schedule_next_poll
(&self, poll_at: Option<u64>)
kernel/src/net/iface/sched.rs:39
↓ 2 callers
Method
sectors_count
(&self)
kernel/src/fs/exfat/mod.rs:59
↓ 2 callers
Method
seek
(&self, pos: SeekFrom)
kernel/src/fs/inode_handle/mod.rs:116
↓ 2 callers
Method
segments
(&self)
kernel/src/net/socket/netlink/message/mod.rs:38
↓ 2 callers
Method
select_config
Query a specific piece of information by `select` and `subsel`, return the result size.
kernel/comps/virtio/src/device/input/device.rs:198
↓ 2 callers
Function
select_remote_and_bind
Selects the remote endpoint and binds if the socket is not bound. The remote endpoint specified in the system call (e.g., `sendto`) argument is prefe
kernel/src/net/socket/util/datagram_common.rs:176
↓ 2 callers
Method
sem_num
(&self)
kernel/src/ipc/semaphore/system_v/sem.rs:29
↓ 2 callers
Method
send
Sends the buffer to the destination.
kernel/comps/virtio/src/device/socket/device.rs:242
↓ 2 callers
Function
send_startup_to_all_aps
# Safety The caller should ensure it's valid to send STARTUP IPIs to all CPUs excluding self.
ostd/src/arch/x86/boot/smp.rs:280
↓ 2 callers
Method
serialize_to
(&self, format: ProfileFormat, cpu_mask: u128, mut target: W)
osdk/src/commands/profile.rs:148
↓ 2 callers
Method
set_anyway
Sets the inner value of an `AtomicCpuId` anyway.
ostd/src/task/scheduler/info.rs:50
↓ 2 callers
Method
set_arguments
(&mut self, sig_num: SigNum, siginfo_addr: usize, ucontext_addr: usize)
kernel/src/arch/x86/signal.rs:10
↓ 2 callers
Function
set_blocking
test/src/apps/network/udp_err.c:267
↓ 2 callers
Method
set_can_reuse
Sets whether the port can be reused.
kernel/libs/aster-bigtcp/src/iface/common.rs:302
↓ 2 callers
Method
set_command
Sets the PCI Command
ostd/src/bus/pci/common_device.rs:52
↓ 2 callers
Method
set_control
Sets the terminal to be the controlling terminal of the process.
kernel/src/process/process/terminal.rs:94
↓ 2 callers
Method
set_cur_and_max
Sets the rlimit with synchronization. Only called when handling the `setrlimit` or `prlimit` syscall.
kernel/src/process/rlimit.rs:153
↓ 2 callers
Method
set_cwd
Sets the current working directory to the given `dentry`.
kernel/src/fs/fs_resolver.rs:46
↓ 2 callers
Method
set_deallocated
Mark a specific slot deallocated.
kernel/comps/mlsdisk/src/layers/5-disk/block_alloc.rs:277
↓ 2 callers
Method
set_device_range
Sets the device block IDs for a specified range. It updates the mapping between the file's block IDs and the device's block IDs starting from `start_
kernel/src/fs/ext2/inode.rs:1519
↓ 2 callers
Method
set_direct
Sets the direct block ID. # Panics If the `idx` is out of bounds, this method will panic.
kernel/src/fs/ext2/block_ptr.rs:30
↓ 2 callers
Function
set_dma_buf
(desc_ptr: &DescriptorPtr, buf: &T)
kernel/comps/virtio/src/queue.rs:424
↓ 2 callers
Method
set_font
(&self, font: aster_console::BitmapFont)
kernel/src/device/tty/n_tty.rs:37
↓ 2 callers
Method
set_gid
(&self, gid: u32)
kernel/src/fs/ext2/inode.rs:774
↓ 2 callers
Method
set_heartbeat
(&self, heartbeat: bool)
kernel/src/thread/work_queue/worker_pool.rs:114
↓ 2 callers
Method
set_keep_alive
(&self, interval: Option<Duration>)
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:526
↓ 2 callers
Method
set_keep_capabilities
(&self, keep_capabilities: bool)
kernel/src/process/credentials/static_cap.rs:152
↓ 2 callers
Method
set_lock
Sets a lock on the file. If no conflicting locks exist, the lock is set and the function returns `Ok(())`. If is_nonblocking is true and a conflictin
kernel/src/fs/utils/flock.rs:141
↓ 2 callers
Method
set_lvt_timer
(&self, value: u64)
ostd/src/arch/x86/kernel/apic/xapic.rs:109
↓ 2 callers
Method
set_mountpoint
Makes current `Dentry` to be a mountpoint, sets it as the mountpoint of the child mount.
kernel/src/fs/path/dentry.rs:661
↓ 2 callers
Method
set_mountpoint_dentry
(&self)
kernel/src/fs/path/dentry.rs:135
↓ 2 callers
Method
set_nagle_enabled
(&self, enabled: bool)
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:536
↓ 2 callers
Method
set_name
(&mut self, name: &CStr)
kernel/src/process/posix_thread/name.rs:40
↓ 2 callers
Method
set_name_and_parent
(&self, name: &str, parent: Arc<Self>)
kernel/src/fs/path/dentry.rs:94
↓ 2 callers
Method
set_new_session
( self: &Arc<Self>, process_group_mut: &mut MutexGuard<Weak<ProcessGroup>>, session_ta
kernel/src/process/process/mod.rs:403
↓ 2 callers
Function
set_next_timer
()
ostd/src/arch/riscv/timer/mod.rs:82
↓ 2 callers
Method
set_non_blocking
(&self, non_blocking: bool)
kernel/src/syscall/signalfd.rs:187
↓ 2 callers
Function
set_nonblocking
test/src/apps/network/udp_err.c:329
↓ 2 callers
Method
set_nonblocking
(&self, nonblocking: bool)
kernel/src/net/socket/ip/stream/mod.rs:417
↓ 2 callers
Method
set_packet_len
(&mut self, packet_len: usize)
kernel/comps/network/src/buffer.rs:107
← previous
next →
1,901–2,000 of 7,307, ranked by callers