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,054 callers
Function
new
()
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:338
↓ 2,401 callers
Method
unwrap
Unwraps and returns a reference to the process VMAR. # Panics This method will panic if the process has exited and its VMAR has been dropped.
kernel/src/process/process_vm/mod.rs:85
↓ 285 callers
Method
contains
(&self, other: impl Into<Self>)
kernel/src/process/signal/sig_mask.rs:150
↓ 284 callers
Method
map
Mapping device address to physical address. # Safety User must ensure the given paddr is a valid one.
ostd/src/arch/x86/iommu/dma_remapping/context_table.rs:70
↓ 282 callers
Method
clone
(&self)
kernel/src/fs/file_table.rs:210
↓ 271 callers
Method
lock
(&self)
kernel/src/fs/exfat/fs.rs:336
↓ 234 callers
Method
clone
(&self)
kernel/src/fs/utils/flock.rs:72
↓ 199 callers
Method
lock
Acquires the lock and gives the caller access to the data protected by it.
kernel/comps/mlsdisk/src/os/mod.rs:166
↓ 153 callers
Method
load
( fs_weak: Weak<ExfatFS>, root_page_cache: Vmo<Full>, root_chain: ExfatChain, )
kernel/src/fs/exfat/bitmap.rs:38
↓ 151 callers
Method
upgrade
(&self)
kernel/libs/keyable-arc/src/lib.rs:272
↓ 150 callers
Method
user_space
Gets the userspace of the current task.
kernel/src/context.rs:36
↓ 141 callers
Method
read
Reads the corresponding device block IDs for a specified range. Note that the returned device range size may be smaller than the requested range due
kernel/src/fs/ext2/inode.rs:1997
↓ 137 callers
Method
push
(&self, observer: &Observer)
kernel/src/fs/epoll/entry.rs:295
↓ 136 callers
Method
join
(&self)
kernel/src/thread/mod.rs:139
↓ 132 callers
Method
clone
(&self)
kernel/src/fs/exfat/dentry.rs:748
↓ 131 callers
Method
as_ref
Returns a reference to the process VMAR if it exists. Returns `None` if the process has exited and its VMAR has been dropped.
kernel/src/process/process_vm/mod.rs:92
↓ 127 callers
Method
bits
Iterates over the bits (i.e., the columns) of the row bitmap.
kernel/comps/console/src/font.rs:168
↓ 125 callers
Method
store
(&self, val: PageState, order: Ordering)
kernel/src/fs/utils/page_cache.rs:581
↓ 124 callers
Method
lock
(&self)
kernel/src/process/process/mod.rs:148
↓ 117 callers
Method
write_val
Writes `val` to the user space of the current process.
kernel/src/context.rs:147
↓ 115 callers
Function
write
()
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_blob.rs:326
↓ 108 callers
Function
read
()
kernel/comps/time/src/lib.rs:70
↓ 98 callers
Method
clone
(&self)
ostd/src/bus/pci/capability/msix.rs:37
↓ 95 callers
Method
collect
Collects all items of the DB. # Transaction This method must be called within the context of a transaction.
kernel/comps/mlsdisk/src/tx/mod.rs:370
↓ 91 callers
Method
as_bytes
(&self)
kernel/src/fs/utils/mod.rs:96
↓ 86 callers
Method
len
(&self)
kernel/src/fs/utils/mod.rs:80
↓ 81 callers
Function
alloc
(guard: &DisabledLocalIrqGuard, layout: Layout)
osdk/deps/frame-allocator/src/cache.rs:120
↓ 78 callers
Method
as_mut_slice
(&mut self)
kernel/comps/mlsdisk/src/layers/4-lsm/sstable.rs:567
↓ 75 callers
Method
as_str
(&self)
kernel/src/fs/utils/mod.rs:88
↓ 74 callers
Function
disable_preempt
()
ostd/src/task/preempt/guard.rs:46
↓ 74 callers
Method
len
(&self)
kernel/src/fs/exfat/dentry.rs:319
↓ 73 callers
Method
push
Pushes a slot to the front of the list. # Panics Panics if - the slot does not come from a slab (i.e., `!matches(slot.info(), SlotInfo::SlabSlot(_))
ostd/src/mm/heap/slot_list.rs:44
↓ 72 callers
Method
len
Returns the length of the edit group.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:51
↓ 72 callers
Method
write
(&self, _reader: &mut VmReader)
kernel/src/fs/epoll/file.rs:261
↓ 71 callers
Method
write_once
Write a specific configuration.
kernel/comps/virtio/src/transport/mod.rs:207
↓ 70 callers
Method
len
(&self)
ostd/src/boot/memory_region.rs:172
↓ 69 callers
Method
cursor_mut
Creates a [`CursorMut`] to perform read- and write-related operations.
kernel/libs/xarray/src/lib.rs:218
↓ 65 callers
Method
lookup
(&self, name: &str)
kernel/src/fs/ext2/inode.rs:181
↓ 64 callers
Method
fs
(&self)
kernel/src/fs/ext2/inode.rs:81
↓ 63 callers
Method
get
# Safety The caller must ensure that its context allows for safe access to `&T`.
ostd/src/arch/x86/kernel/apic/mod.rs:51
↓ 63 callers
Method
push
Adds an edit to the group.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:31
↓ 62 callers
Method
borrow_file_table_mut
(&self)
kernel/src/process/posix_thread/thread_local.rs:82
↓ 61 callers
Method
skip
Skips `count` bytes in the `RingBuffer`. In other words, `count` bytes are read from the `RingBuffer` and discarded. # Panics This method will pani
kernel/src/util/ring_buffer.rs:473
↓ 58 callers
Method
as_ref
(&self)
kernel/src/fs/utils/endpoint.rs:120
↓ 56 callers
Method
is_empty
(&self)
kernel/src/fs/utils/mod.rs:84
↓ 56 callers
Method
take
(&'a mut self, range: &Range<K>)
kernel/src/vm/vmar/interval_set.rs:147
↓ 55 callers
Method
read
(&self, writer: &mut VmWriter)
kernel/src/net/socket/mod.rs:127
↓ 54 callers
Method
insert
(&mut self, item: Arc<dyn FileLike>, flags: FdFlags)
kernel/src/fs/file_table.rs:102
↓ 53 callers
Method
iter
Returns an iterator over the [`VmMapping`]s that intersect with the provided range when calling [`Vmar::query`].
kernel/src/vm/vmar/mod.rs:1116
↓ 53 callers
Function
send
Sends a byte on the serial port.
ostd/src/arch/x86/serial.rs:26
↓ 51 callers
Method
get_mut
Get the mutable reference of the item at position `idx`. Return `None` if `idx` is out of bounds or the item is not exist.
kernel/libs/aster-util/src/slot_vec.rs:58
↓ 50 callers
Method
fs
(&self)
kernel/src/fs/exfat/inode.rs:228
↓ 49 callers
Method
as_mut
Coverts to mutably-borrowed buffer `BufMut`.
kernel/comps/mlsdisk/src/layers/0-bio/block_buf.rs:66
↓ 49 callers
Method
cursor
Creates a [`Cursor`] to perform read-related operations.
kernel/libs/xarray/src/lib.rs:154
↓ 48 callers
Method
write
(&mut self, register: u8, data: u32)
ostd/src/arch/x86/kernel/irq/ioapic.rs:187
↓ 47 callers
Method
alloc_segment
Allocates a `DmaSegment` from the pool
kernel/comps/network/src/dma_pool.rs:99
↓ 47 callers
Method
error
(&self)
kernel/src/error.rs:176
↓ 47 callers
Method
iter
Returns an iterator for iterating `DirEntryItem`s.
kernel/src/fs/ext2/dir.rs:178
↓ 47 callers
Method
read_cstring
Reads a C string from the user space of the current process. The length of the string should not exceed `max_len`, including the final `\0` byte.
kernel/src/context.rs:159
↓ 47 callers
Method
write
(&self, reader: &mut dyn MultiRead)
kernel/src/fs/utils/channel.rs:292
↓ 46 callers
Method
add
Adds a CPU to the set.
ostd/src/cpu/set.rs:48
↓ 46 callers
Method
as_ref
Converts to immutably-borrowed buffer `BufRef`.
kernel/comps/mlsdisk/src/layers/0-bio/block_buf.rs:61
↓ 46 callers
Method
checked_add
Add a duration to self. If the result does not exceed inner bounds return Some(t), else return None.
kernel/src/time/system_time.rs:52
↓ 45 callers
Method
insert
(&mut self, sst: SSTable<K, V>, level: LsmLevel)
kernel/comps/mlsdisk/src/layers/4-lsm/tx_lsm_tree.rs:855
↓ 45 callers
Method
remove
(&self, name: XattrName)
kernel/src/fs/ext2/xattr.rs:302
↓ 44 callers
Method
as_posix_thread
(&self)
kernel/src/process/posix_thread/posix_thread_ext.rs:15
↓ 44 callers
Method
find
Finds a dentry by name. Returns error for negative entries.
kernel/src/fs/path/dentry.rs:448
↓ 44 callers
Method
iter
Returns an iterator to the contained edits.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:36
↓ 43 callers
Method
clone
(&self)
kernel/src/net/socket/netlink/receiver.rs:13
↓ 43 callers
Method
lock
Locks the mutex.
ostd/libs/linux-bzimage/setup/src/sync.rs:24
↓ 43 callers
Method
read_time
(&self)
kernel/src/time/clocks/cpu_clock.rs:47
↓ 42 callers
Method
push_back
(&mut self, s: &str)
osdk/deps/test-kernel/src/path.rs:41
↓ 42 callers
Method
read_once
Read a specific configuration.
kernel/comps/virtio/src/transport/mod.rs:161
↓ 42 callers
Method
remain
Return the remain time to expiration of this timer. If the timer has not been set, this method will return `Duration::ZERO`.
kernel/src/time/core/timer.rs:110
↓ 41 callers
Method
get
Gets a softirq line. The value of `id` must be within `0..NR_LINES`.
kernel/comps/softirq/src/lib.rs:69
↓ 41 callers
Method
is_empty
(&self)
kernel/src/sched/sched_class/stop.rs:50
↓ 41 callers
Method
lock
(&self)
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:247
↓ 41 callers
Function
map
# Safety Mapping an incorrect address may lead to a kernel data leak.
ostd/src/arch/riscv/iommu/mod.rs:16
↓ 41 callers
Method
store
Stores the provided item at the target index.
kernel/libs/xarray/src/lib.rs:223
↓ 40 callers
Method
pages
Returns the Vmo object. TODO: The capability is too high,restrict it to eliminate the possibility of misuse. For example, the `resize` api should be f
kernel/src/fs/utils/page_cache.rs:57
↓ 40 callers
Method
read
Reads one or multiple data 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/tx_log.rs:821
↓ 39 callers
Function
kill
Sends a signal to a process, using the current process as the sender. The credentials of the current process will be checked to determine if it is au
kernel/src/process/kill.rs:22
↓ 39 callers
Method
read_val
Reads a value typed `Pod` from the user space of the current process.
kernel/src/context.rs:116
↓ 38 callers
Function
disable_local
()
ostd/src/arch/x86/irq.rs:86
↓ 38 callers
Method
iter
Iterates over the CPUs in the set. The order of the iteration is guaranteed to be in ascending order.
ostd/src/cpu/set.rs:112
↓ 37 callers
Method
clone
(&self)
kernel/libs/keyable-arc/src/lib.rs:225
↓ 37 callers
Method
split
(self)
kernel/src/fs/utils/channel.rs:66
↓ 36 callers
Method
filter
(&self, _events: &E)
kernel/src/events/events.rs:35
↓ 36 callers
Method
get
(&self)
kernel/src/sched/sched_class/policy.rs:75
↓ 36 callers
Method
get
(&self, name: XattrName, value_writer: &mut VmWriter)
kernel/src/fs/ext2/xattr.rs:231
↓ 36 callers
Method
insert
(&mut self, path: I)
osdk/deps/test-kernel/src/path.rs:189
↓ 36 callers
Method
new_fs_child
Creates a new `Dentry` to represent the child directory of a file system.
kernel/src/fs/path/dentry.rs:527
↓ 36 callers
Method
notify
Notifies pollers of some events. This method invalidates the (internal) cached events and wakes up all registered pollers that are interested in the
kernel/src/process/signal/poll.rs:174
↓ 35 callers
Method
clone
(&self)
kernel/src/process/process_vm/mod.rs:106
↓ 35 callers
Method
get
Gets the total counter value. This function may be inaccurate since other CPUs may be updating the counter.
osdk/deps/frame-allocator/src/smp_counter.rs:76
↓ 35 callers
Method
read
(&self, writer: &mut VmWriter)
kernel/src/syscall/eventfd.rs:175
↓ 35 callers
Method
resolver
Returns the associated `FsResolver`.
kernel/src/fs/thread_info.rs:15
↓ 34 callers
Method
as_ptr
Gets the pointer to the slot.
ostd/src/mm/heap/slot.rs:146
↓ 34 callers
Method
as_ref
(&self)
kernel/src/net/socket/unix/stream/connected.rs:352
↓ 34 callers
Method
as_slice
Returns a slice of the tasks in the task set.
kernel/src/process/task_set.rs:78
next →
1–100 of 7,307, ranked by callers