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
↓ 7 callers
Method
head
Gets the head number of the `RingBuffer`. This is the number of items read from the ring buffer. The number wraps when crossing [`usize`] boundaries.
kernel/src/util/ring_buffer.rs:144
↓ 7 callers
Method
header
(&self)
kernel/src/net/socket/netlink/route/message/segment/mod.rs:60
↓ 7 callers
Method
ids_iter
Creates an iterator over all group IDs.
kernel/src/net/socket/netlink/addr/multicast.rs:23
↓ 7 callers
Method
iface
(&self)
kernel/src/net/socket/ip/stream/mod.rs:795
↓ 7 callers
Method
index
(&self)
kernel/src/device/tty/mod.rs:78
↓ 7 callers
Function
init
()
kernel/comps/virtio/src/transport/mod.rs:257
↓ 7 callers
Method
insert_without_try_merge
Inserts a `VmMapping` into the `Vmar`, without attempting to merge with neighboring mappings. The caller must ensure that the given `VmMapping` is no
kernel/src/vm/vmar/mod.rs:211
↓ 7 callers
Method
into_unique_head
Turns the free chunk into a pointer to the head frame.
osdk/deps/frame-allocator/src/chunk.rs:179
↓ 7 callers
Function
is_dot
Checks if the file name is ".", indicating it's the current directory.
kernel/src/fs/path/mod.rs:12
↓ 7 callers
Method
is_marked
(&self, offset: u8)
kernel/libs/xarray/src/mark.rs:42
↓ 7 callers
Method
is_shutdown
(&self)
kernel/src/fs/utils/channel.rs:360
↓ 7 callers
Method
is_zombie
Returns whether the process is a zombie process.
kernel/src/process/status.rs:41
↓ 7 callers
Method
kind
(&self)
kernel/src/sched/sched_class/policy.rs:36
↓ 7 callers
Method
local_pool
(&self, cpu_id: CpuId)
kernel/src/thread/work_queue/worker_pool.rs:187
↓ 7 callers
Method
lock_root_vmar
(&self)
kernel/src/process/process/mod.rs:588
↓ 7 callers
Method
map_size
Returns the mapping's size.
kernel/src/vm/vmar/vm_mapping.rs:134
↓ 7 callers
Method
mountpoint_dentry
Gets the mountpoint `Dentry_` of this mount node if any.
kernel/src/fs/path/mount.rs:210
↓ 7 callers
Method
name_len
Returns the length of the name.
kernel/src/fs/ext2/dir.rs:318
↓ 7 callers
Method
new_header
(&self, src_cid: u64)
kernel/comps/virtio/src/device/socket/connect.rs:202
↓ 7 callers
Method
new_tx
Creates a new transaction for `RawLogStore`.
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:228
↓ 7 callers
Method
next
Increases the target index of the cursor by one. Once increased, the cursor will be positioned on the corresponding leaf node if the leaf node exists
kernel/libs/xarray/src/cursor.rs:209
↓ 7 callers
Method
offset
Sets the mapping's offset inside the VMAR. The offset must satisfy the alignment requirement. Also, the mapping's range `[offset, offset + size)` mus
kernel/src/vm/vmar/mod.rs:923
↓ 7 callers
Method
parent
Gets the parent `Dentry_`. Returns None if it is a root `Dentry_`.
kernel/src/fs/path/dentry.rs:87
↓ 7 callers
Method
pause_until
(&self, mut cond: F)
kernel/src/net/socket/unix/stream/listener.rs:304
↓ 7 callers
Method
payload_len
Returns the payload length of the control message.
kernel/src/net/socket/util/message_header.rs:181
↓ 7 callers
Method
pos
(&self)
kernel/src/process/process_vm/init_stack/mod.rs:218
↓ 7 callers
Function
process_table_mut
()
kernel/src/process/process_table.rs:27
↓ 7 callers
Method
range
The range of keys covered by this `SSTable`.
kernel/comps/mlsdisk/src/layers/4-lsm/sstable.rs:136
↓ 7 callers
Method
rb
(&self)
kernel/src/fs/utils/channel.rs:391
↓ 7 callers
Method
read
Reads data from the device, this function is non-blocking.
kernel/comps/virtio/src/device/block/device.rs:308
↓ 7 callers
Method
read16
(&self, offset: u16)
ostd/src/bus/pci/device_info.rs:111
↓ 7 callers
Method
read_bytes_at
(&self, offset: usize, buf: &mut [u8])
kernel/src/fs/utils/inode.rs:587
↓ 7 callers
Method
readdir_at
Returns the children objects in a unified view. The object from the upper layer with the same name will mask the lower ones.
kernel/src/fs/overlayfs/fs.rs:313
↓ 7 callers
Method
rmdir
(&self, name: &str)
kernel/src/fs/exfat/inode.rs:1545
↓ 7 callers
Method
send_packet_to_tx_queue
( &mut self, header: &VirtioVsockHdr, buffer: &[u8], )
kernel/comps/virtio/src/device/socket/device.rs:183
↓ 7 callers
Method
set_cursor
Set the cursor for appending new blocks. # Panics Calling the `append` method without setting the append cursor first via this method `set_cursor` c
kernel/comps/mlsdisk/src/layers/0-bio/block_ring.rs:52
↓ 7 callers
Method
set_xattr
( &self, name: XattrName, value_reader: &mut VmReader, flags: XattrSetFlags,
kernel/src/fs/ext2/inode.rs:823
↓ 7 callers
Function
spawn
Spawns a new thread, returning a `JoinHandle` for it.
kernel/comps/mlsdisk/src/os/mod.rs:179
↓ 7 callers
Method
status_flags
(&self)
kernel/src/fs/inode_handle/mod.rs:133
↓ 7 callers
Method
submit_and_wait
Submits self to the `block_device` and waits for the result synchronously. Returns the result status of the `Bio`. # Panics The caller must not sub
kernel/comps/block/src/bio.rs:119
↓ 7 callers
Method
sync
Flushes all pending filesystem metadata and cached file data to the device.
kernel/src/fs/path/mount.rs:224
↓ 7 callers
Method
typ
(&self)
ostd/src/boot/memory_region.rs:191
↓ 7 callers
Method
update_atime_and_mtime
(&mut self)
kernel/src/fs/exfat/inode.rs:610
↓ 7 callers
Method
upper
Returns the upper inode if it exists.
kernel/src/fs/overlayfs/fs.rs:582
↓ 7 callers
Method
value
(&self)
kernel/src/sched/nice.rs:29
↓ 7 callers
Method
wait_and_recv_data
(&mut self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:185
↓ 7 callers
Method
walk
The destination cluster must be a valid cluster.
kernel/src/fs/exfat/fat.rs:173
↓ 6 callers
Function
abort
Aborts the QEMU
ostd/src/panic.rs:43
↓ 6 callers
Function
access_sched_attr_with
( tid: Tid, ctx: &Context, f: impl FnOnce(&SchedAttr) -> Result<T>, )
kernel/src/syscall/sched_getattr.rs:193
↓ 6 callers
Method
add_child
(&self, child: Arc<dyn SysObj>)
kernel/src/fs/sysfs/test.rs:149
↓ 6 callers
Method
add_child
(&self, new_child: Arc<C>)
kernel/comps/systree/src/utils.rs:141
↓ 6 callers
Method
addr
Returns the address of the buddy chunk.
osdk/deps/frame-allocator/src/chunk.rs:189
↓ 6 callers
Method
align
Sets the mapping's alignment. The default value is the page size. The provided alignment must be a power of two and a multiple of the page size.
kernel/src/vm/vmar/mod.rs:911
↓ 6 callers
Method
alloc_id
(&self)
kernel/src/fs/ramfs/fs.rs:71
↓ 6 callers
Function
append_and_recover
A test case for `EditJournal`. The `threshold` is used to control the compact frequency, see `ThresholdPolicy`. The `commit_times` is used to control
kernel/comps/mlsdisk/src/layers/2-edit/journal.rs:964
↓ 6 callers
Method
as_bytes
Returns the FPU context as a byte slice.
ostd/src/arch/x86/cpu/context/mod.rs:545
↓ 6 callers
Method
as_bytes_with_nul
(&self)
kernel/src/fs/utils/mod.rs:100
↓ 6 callers
Method
as_node
(&self)
kernel/libs/xarray/src/cursor.rs:55
↓ 6 callers
Function
bit_idx
(cpu_id: CpuId)
ostd/src/cpu/set.rs:26
↓ 6 callers
Method
bitmap
(&self)
kernel/src/fs/exfat/fs.rs:316
↓ 6 callers
Method
blocks_count
(&self)
kernel/src/fs/ext2/inode.rs:1274
↓ 6 callers
Method
borrow_vm
Construct a new SafePtr which will point to the same address
kernel/libs/aster-util/src/safe_ptr.rs:298
↓ 6 callers
Function
callback
(unwind_ctx: &UnwindContext<'_>, arg: *mut c_void)
ostd/src/panic.rs:70
↓ 6 callers
Method
check_range
(&self, offset: u16)
ostd/src/bus/pci/capability/vendor.rs:71
↓ 6 callers
Method
check_rights
(&self, rights: Rights)
kernel/src/vm/vmar/static_cap.rs:140
↓ 6 callers
Method
clear
Clear all records from the table.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:275
↓ 6 callers
Method
clone
(&self)
kernel/src/fs/utils/range_lock/mod.rs:172
↓ 6 callers
Method
close_file
(&mut self, fd: FileDesc)
kernel/src/fs/file_table.rs:123
↓ 6 callers
Method
dealloc
Deallocates the chunk of a given ID. # Panic Deallocating a free chunk causes panic.
kernel/comps/mlsdisk/src/layers/3-log/chunk.rs:174
↓ 6 callers
Function
default_prop
()
ostd/src/mm/kspace/test.rs:15
↓ 6 callers
Method
delete
Deletes a dentry by name, turning it into a negative entry if exists.
kernel/src/fs/path/dentry.rs:470
↓ 6 callers
Method
dispatch_tlb_flush
(&mut self)
ostd/src/mm/tlb.rs:114
↓ 6 callers
Method
driver
(&self)
kernel/src/device/tty/mod.rs:82
↓ 6 callers
Method
find
Finds all interval items that intersect with the given range.
kernel/src/vm/vmar/interval_set.rs:88
↓ 6 callers
Method
find_mut
Retrieves a mutable reference to an `IndirectBlock` by its `bid`. If the block is not present in the cache, it will be loaded from the disk.
kernel/src/fs/ext2/indirect_block_cache.rs:61
↓ 6 callers
Method
first_one
Find the index of the first one bit, starting from the given index (inclusively). Return `None` if no one bit is found. # Panics The `from` index m
kernel/comps/mlsdisk/src/util/bitmap.rs:128
↓ 6 callers
Method
flags
(&self)
kernel/src/syscall/mmap.rs:232
↓ 6 callers
Method
free_blocks_count
(&self)
kernel/src/fs/ext2/block_group.rs:418
↓ 6 callers
Function
get_acpi_tables
()
ostd/src/arch/x86/kernel/acpi/mod.rs:39
↓ 6 callers
Function
get_cargo_metadata
Get the Cargo metadata parsed from the standard output of the invocation of Cargo. Return `None` if the command fails or the `current_dir` is not in a
osdk/src/util.rs:44
↓ 6 callers
Function
get_futex_bucket
(key: FutexKey)
kernel/src/process/posix_thread/futex.rs:336
↓ 6 callers
Function
get_kernel_crate
Get the kernel crate in the current directory. If the current directory is a virtual workspace and no/multiple kernel crate is found, This function w
osdk/src/util.rs:153
↓ 6 callers
Method
get_top_valid_inode
Returns the top valid inode who must exist.
kernel/src/fs/overlayfs/fs.rs:553
↓ 6 callers
Function
get_value_from_range
(value: u16, range: Range<usize>)
kernel/src/fs/exfat/utils.rs:35
↓ 6 callers
Function
handler
test/src/apps/itimer/timer_create.c:16
↓ 6 callers
Method
hash
(&self)
kernel/libs/aster-bigtcp/src/socket_table.rs:41
↓ 6 callers
Method
hash_index
The hash_value to index inode. This should be unique in the whole fs. Currently use dentry set physical position as hash value except for root(0).
kernel/src/fs/exfat/inode.rs:183
↓ 6 callers
Method
height
(&self)
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_log.rs:581
↓ 6 callers
Method
id
Returns the log ID.
kernel/comps/mlsdisk/src/layers/3-log/tx_log.rs:797
↓ 6 callers
Method
interval
Returns the interval time of the current timer.
kernel/src/time/core/timer.rs:127
↓ 6 callers
Method
io_mem
Returns a reference to the I/O memory.
kernel/comps/virtio/src/transport/mmio/bus/common_device.rs:38
↓ 6 callers
Function
is_dotdot
Checks if the file name is "..", indicating it's the parent directory.
kernel/src/fs/path/mod.rs:18
↓ 6 callers
Method
is_empty
Checks if the set of group IDs is empty.
kernel/src/net/socket/netlink/addr/multicast.rs:48
↓ 6 callers
Method
is_empty
Return `true` if the vector contains no items.
kernel/libs/aster-util/src/slot_vec.rs:34
↓ 6 callers
Method
is_empty
Returns true if the set is empty.
ostd/src/cpu/set.rs:82
↓ 6 callers
Method
is_modern
Return if the modern configuration space exists.
kernel/comps/virtio/src/transport/mod.rs:131
↓ 6 callers
Method
is_privileged
(&self)
kernel/src/process/credentials/credentials_.rs:77
↓ 6 callers
Function
is_sector_aligned
Checks if the given offset is aligned to sector.
kernel/comps/block/src/bio.rs:710
↓ 6 callers
Function
is_tdx_enabled
()
osdk/tests/util/mod.rs:189
↓ 6 callers
Method
is_unicast_local
Returns whether the destination address is the unicast address of a local interface. Note: "local" means that the IP address belongs to the local int
kernel/libs/aster-bigtcp/src/iface/poll.rs:344
← previous
next →
501–600 of 7,307, ranked by callers