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
↓ 4 callers
Method
set_if_is_none
Sets the inner value of an `AtomicCpuId` if it's empty. The return value is a result indicating whether the new value was written and containing the
ostd/src/task/scheduler/info.rs:37
↓ 4 callers
Method
set_indirect
Sets the block ID of single indirect block pointer.
kernel/src/fs/ext2/block_ptr.rs:41
↓ 4 callers
Method
set_interval
Set the interval time for this timer. The timer will be reset with the interval time upon expiration.
kernel/src/time/core/timer.rs:60
↓ 4 callers
Method
set_range
(&mut self, clusters: Range<ClusterID>, bit: bool, sync: bool)
kernel/src/fs/exfat/bitmap.rs:334
↓ 4 callers
Method
set_start
Sets a new starting position for the lock range If the range shrinks, it will wake all waiting processes
kernel/src/fs/utils/range_lock/mod.rs:114
↓ 4 callers
Method
set_status
(&self, status: Status)
kernel/src/ipc/semaphore/system_v/sem.rs:73
↓ 4 callers
Method
set_status_flags
(&self, new_flags: StatusFlags)
kernel/src/syscall/eventfd.rs:223
↓ 4 callers
Method
set_syscall_ret
(&mut self, ret: usize)
kernel/src/arch/x86/cpu.rs:34
↓ 4 callers
Method
set_tb_indirect
Sets the block ID of treble indirect block pointer.
kernel/src/fs/ext2/block_ptr.rs:61
↓ 4 callers
Method
set_tls_pointer
Sets thread-local storage pointer.
ostd/src/arch/x86/task/mod.rs:25
↓ 4 callers
Method
set_type
Sets the type of the lock to the specified type
kernel/src/fs/utils/range_lock/mod.rs:45
↓ 4 callers
Method
sgid
(&self)
kernel/src/process/credentials/credentials_.rs:268
↓ 4 callers
Method
shared_irq_line
Get shared IRQ line used by virtqueue. If a virtqueue will not send interrupt frequently. Then this virtqueue should use shared interrupt IRQ. This fu
kernel/comps/virtio/src/transport/pci/msix.rs:48
↓ 4 callers
Method
shut_read
(&self)
kernel/src/net/socket/util/shutdown_cmd.rs:20
↓ 4 callers
Method
shut_write
(&self)
kernel/src/net/socket/util/shutdown_cmd.rs:24
↓ 4 callers
Method
sid
(&self)
kernel/src/process/kill.rs:209
↓ 4 callers
Method
sig_stack
(&self)
kernel/src/process/posix_thread/thread_local.rs:90
↓ 4 callers
Function
spin_wait_cycles
Spin wait approximately `c` cycles. Since the timer requires CPU local storage to be initialized, we can only wait by spinning.
ostd/src/arch/x86/boot/smp.rs:335
↓ 4 callers
Method
status_flags
(&self)
kernel/src/syscall/eventfd.rs:215
↓ 4 callers
Method
status_flags
(&self)
kernel/src/vm/memfd.rs:124
↓ 4 callers
Method
stop_status
(&self)
kernel/src/process/status.rs:82
↓ 4 callers
Method
str_to_upcase
(&self, value: &str)
kernel/src/fs/exfat/upcase_table.rs:84
↓ 4 callers
Method
submit
Submits self to the `block_device` asynchronously. Returns a `BioWaiter` to the caller to wait for its completion. # Panics The caller must not sub
kernel/comps/block/src/bio.rs:85
↓ 4 callers
Method
suid
(&self)
kernel/src/process/credentials/credentials_.rs:91
↓ 4 callers
Method
sync_all
(&self)
kernel/src/fs/ext2/inode.rs:752
↓ 4 callers
Method
sync_id
Return the sync ID of this `SSTable`, it may be smaller than the current master sync ID.
kernel/comps/mlsdisk/src/layers/4-lsm/sstable.rs:131
↓ 4 callers
Method
sync_meta_at
(&self, range: core::ops::Range<usize>)
kernel/src/fs/exfat/fs.rs:154
↓ 4 callers
Method
target_record_block
Locate the target record block given its position, it resides in either the cache or the log.
kernel/comps/mlsdisk/src/layers/4-lsm/sstable.rs:244
↓ 4 callers
Method
terminal
Returns the controlling terminal of the process, if any.
kernel/src/process/process/mod.rs:323
↓ 4 callers
Method
this_end
(&self)
kernel/src/fs/utils/channel.rs:107
↓ 4 callers
Function
thread_master
test/src/apps/exit/exit_code.c:33
↓ 4 callers
Method
to_dyn
Converts to a dynamic capability.
kernel/src/vm/vmo/dyn_cap.rs:153
↓ 4 callers
Function
to_optional_id
(id: i32, f: impl Fn(u32) -> T)
kernel/src/syscall/chown.rs:97
↓ 4 callers
Function
tsc_freq
Return the frequency of TSC. The unit is Hz.
ostd/src/arch/riscv/mod.rs:44
↓ 4 callers
Method
type_
(&self)
kernel/src/fs/devpts/mod.rs:198
↓ 4 callers
Method
type_name_tokens
the tokens represents the flag set type name
kernel/libs/typeflags/src/flag_set.rs:30
↓ 4 callers
Method
umask
Returns the associated `FileCreationMask`.
kernel/src/fs/thread_info.rs:20
↓ 4 callers
Method
update
Updates the epoll entry by the given event masks and flags. This method needs to be called in response to `EpollCtl::Add` and `EpollCtl::Mod`.
kernel/src/fs/epoll/entry.rs:143
↓ 4 callers
Method
update_atime
(&mut self)
kernel/src/fs/exfat/inode.rs:605
↓ 4 callers
Method
update_info
(&self, event: &VsockEvent)
kernel/src/net/socket/vsock/stream/connected.rs:113
↓ 4 callers
Method
value
(&self)
kernel/comps/mlsdisk/src/layers/5-disk/mlsdisk.rs:824
↓ 4 callers
Method
version_id
Returns the current version ID. # Security It is valid after a successful call to `create`, `read` or `write`. User could also get a version ID from
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_blob.rs:220
↓ 4 callers
Method
visit_sub_inodes
Read all sub-inodes from the given position(offset) in this directory. The number of inodes to read is given by dir_cnt. Return (the new offset after
kernel/src/fs/exfat/inode.rs:362
↓ 4 callers
Method
vmo
Binds a [`Vmo`] to the mapping. If the mapping is a private mapping, its size may not be equal to that of the [`Vmo`]. For example, it is OK to creat
kernel/src/vm/vmar/mod.rs:885
↓ 4 callers
Method
will_ignore
Returns whether signals will be ignored. Signals will be ignored because either the signal action is explicitly set to ignore the signals, or the sig
kernel/src/process/signal/sig_action.rs:86
↓ 4 callers
Function
with_sigmask_changed
Executes a closure after temporarily adjusting the signal mask of the current POSIX thread.
kernel/src/process/signal/pause.rs:210
↓ 4 callers
Function
workspace_root
()
osdk/src/commands/run.rs:196
↓ 4 callers
Method
write
(&mut self, reader: &mut VmReader<'_, Infallible>)
kernel/src/util/iovec.rs:250
↓ 4 callers
Method
write_attr
(&self, _name: &str, _reader: &mut VmReader)
kernel/comps/systree/src/utils.rs:363
↓ 4 callers
Method
write_bytes_async
Asynchronously writes consecutive bytes of several sectors in size.
kernel/comps/block/src/impl_block_device.rs:178
↓ 4 callers
Method
write_device_status
(&mut self, status: DeviceStatus)
kernel/comps/virtio/src/transport/pci/device.rs:193
↓ 4 callers
Method
write_header_only
Writes the header of a `DirEntry` at the current offset.
kernel/src/fs/ext2/dir.rs:378
↓ 4 callers
Function
write_lock_multiple_inodes
(inodes: Vec<&Inode>)
kernel/src/fs/ext2/inode.rs:936
↓ 4 callers
Function
write_repeat
test/src/apps/pty/pty_blocking.c:18
↓ 4 callers
Method
write_slice
(&self, slice: &[T])
kernel/libs/aster-util/src/safe_ptr.rs:219
↓ 4 callers
Function
write_socket_addr_to_user
Writes a socket address and its length to userspace. Similar to [`write_socket_addr_with_max_len`], the socket address may be truncated if the buffer
kernel/src/util/net/addr/family.rs:206
↓ 4 callers
Method
write_str
(&mut self, s: &str)
kernel/comps/logger/src/console.rs:27
↓ 3 callers
Method
active_array
(&mut self)
kernel/src/sched/sched_class/real_time.rs:171
↓ 3 callers
Method
add_assign
Adds a value to the per-CPU object in a single instruction. This operation wraps on overflow/underflow. Note that this memory operation will not be
ostd/src/cpu/local/cell.rs:155
↓ 3 callers
Method
add_member
Adds a new member to the multicast group.
kernel/src/net/socket/netlink/table/multicast.rs:22
↓ 3 callers
Method
add_slab
(&mut self, slab: Slab<SLOT_SIZE>)
osdk/deps/heap-allocator/src/slab_cache.rs:120
↓ 3 callers
Method
addr
(&self)
kernel/src/net/socket/vsock/stream/socket.rs:287
↓ 3 callers
Method
addr
Returns the starting address of requested blocks. The return value is meaningless if the request is not a read or write.
kernel/comps/mlsdisk/src/layers/5-disk/bio.rs:112
↓ 3 callers
Method
advance_tail
(&self, mut tail: Wrapping<usize>, len: usize)
kernel/src/util/ring_buffer.rs:212
↓ 3 callers
Method
alarm_timer
Gets the alarm timer of the corresponding process.
kernel/src/process/process/timer_manager.rs:130
↓ 3 callers
Method
align_record_buf
(&mut self)
kernel/comps/mlsdisk/src/layers/4-lsm/wal.rs:255
↓ 3 callers
Function
all_devices
()
kernel/comps/block/src/lib.rs:98
↓ 3 callers
Method
alloc_and_map_vm
Initializes and maps the heap virtual memory.
kernel/src/process/process_vm/heap.rs:38
↓ 3 callers
Method
alloc_blocks
Allocates a consecutive range of blocks. The returned allocated range size may be smaller than the requested `count` if insufficient consecutive bloc
kernel/src/fs/ext2/fs.rs:230
↓ 3 callers
Method
alloc_id
(&self)
kernel/src/fs/procfs/mod.rs:66
↓ 3 callers
Function
allocate_posix_tid
Allocates a new tid for the new posix thread
kernel/src/process/posix_thread/mod.rs:324
↓ 3 callers
Method
append
Append a block at the end. The length of the given buffer must not be larger than `AVAIL_BLOCK_SIZE`. # Security The confidentiality of the block i
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:146
↓ 3 callers
Function
apply_kv_array
Apply key-value pairs to an array of strings. The provided arguments will be appended to the array if the key is not already present or if the key is
osdk/src/config/unix_args.rs:45
↓ 3 callers
Method
apply_to
(&self, state: &mut XState)
kernel/comps/mlsdisk/src/layers/2-edit/journal.rs:836
↓ 3 callers
Method
as_le_bytes
(&self)
kernel/src/fs/exfat/dentry.rs:40
↓ 3 callers
Method
as_ptr
Gets access to the underlying value through a raw pointer. This method is safe, but using the returned pointer will be unsafe.
ostd/src/cpu/local/static_cpu_local.rs:67
↓ 3 callers
Function
assert_eq
test/src/apps/overlayfs/ovl_test.c:84
↓ 3 callers
Method
atime
(&self)
kernel/src/fs/ext2/inode.rs:1286
↓ 3 callers
Method
base
The base address, i.e., the offset relative to the root VMAR. The base address of a root VMAR is zero.
kernel/src/vm/vmar/mod.rs:803
↓ 3 callers
Function
bin_file_name
()
osdk/src/commands/util.rs:25
↓ 3 callers
Function
bind_port
(endpoint: &IpEndpoint, can_reuse: bool)
kernel/src/net/socket/ip/common.rs:51
↓ 3 callers
Method
bind_unnamed
(&self)
kernel/src/net/socket/unix/addr.rs:33
↓ 3 callers
Method
block_group_of_ino
(&self, ino: u32)
kernel/src/fs/ext2/fs.rs:425
↓ 3 callers
Method
block_groups_count
Returns the number of block groups.
kernel/src/fs/ext2/super_block.rs:218
↓ 3 callers
Method
blocks_per_group
Returns the number of blocks in each block group.
kernel/src/fs/ext2/fs.rs:127
↓ 3 callers
Method
body
(&self)
kernel/src/net/socket/netlink/message/segment/common.rs:28
↓ 3 callers
Method
bound_port
(&self)
kernel/src/net/socket/ip/stream/init.rs:82
↓ 3 callers
Method
broadcast_signal
Broadcasts the signal to all processes in the process group. This method should only be used to broadcast fault signals and kernel signals. TODO: Do
kernel/src/process/process/process_group.rs:67
↓ 3 callers
Method
buffer_len
(&self)
kernel/src/device/tty/line_discipline.rs:231
↓ 3 callers
Function
cache_expected_size
Returns the expected size of cache for each CPU-local free pool. It depends on the size of the global free pool.
osdk/deps/frame-allocator/src/pools/balancing.rs:20
↓ 3 callers
Function
calc_checksum_16
Calculating checksum, ignoring certarin bytes in the range
kernel/src/fs/exfat/utils.rs:23
↓ 3 callers
Function
calc_loadavg
(old_load: FixedPoint, exp: FixedPoint, new_load: FixedPoint)
kernel/src/sched/stats/loadavg.rs:69
↓ 3 callers
Method
can_overwrite
Sets whether the mapping can overwrite existing mappings. The default value is false. If this option is set to true, then the `offset` option must b
kernel/src/vm/vmar/mod.rs:934
↓ 3 callers
Method
can_process
Returns whether an incoming packet _may_ be processed by the socket. The check is intended to be lock-free and fast, but may have false positives.
kernel/libs/aster-bigtcp/src/socket/bound/common.rs:138
↓ 3 callers
Method
capabilities
(&self)
kernel/comps/virtio/src/device/network/device.rs:319
↓ 3 callers
Method
check_expired
Checks whether the timeout is expired. This method will return: - `Ok(Some(_))` if the timeout isn't expired but it may be expired later. - `Ok(None)
kernel/src/time/wait.rs:72
↓ 3 callers
Method
check_extra_size_fits_rlimit
Returns `Ok` if the calling process may expand its mapped memory by the passed size.
kernel/src/vm/vmar/mod.rs:168
↓ 3 callers
Function
check_xattr_namespace
(namespace: XattrNamespace, ctx: &Context)
kernel/src/syscall/setxattr.rs:180
↓ 3 callers
Method
clear
Equivalent to FD_ZERO.
kernel/src/syscall/select.rs:242
↓ 3 callers
Method
clear
Clears the signal number
kernel/src/process/signal/sig_num.rs:123
← previous
next →
1,001–1,100 of 7,307, ranked by callers