MCPcopy Create free account

hub / github.com/asterinas/vostd / functions

Functions7,307 in github.com/asterinas/vostd

↓ 3,054 callersFunctionnew
()
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:338
↓ 2,401 callersMethodunwrap
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 callersMethodcontains
(&self, other: impl Into<Self>)
kernel/src/process/signal/sig_mask.rs:150
↓ 284 callersMethodmap
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 callersMethodclone
(&self)
kernel/src/fs/file_table.rs:210
↓ 271 callersMethodlock
(&self)
kernel/src/fs/exfat/fs.rs:336
↓ 234 callersMethodclone
(&self)
kernel/src/fs/utils/flock.rs:72
↓ 199 callersMethodlock
Acquires the lock and gives the caller access to the data protected by it.
kernel/comps/mlsdisk/src/os/mod.rs:166
↓ 153 callersMethodload
( fs_weak: Weak<ExfatFS>, root_page_cache: Vmo<Full>, root_chain: ExfatChain, )
kernel/src/fs/exfat/bitmap.rs:38
↓ 151 callersMethodupgrade
(&self)
kernel/libs/keyable-arc/src/lib.rs:272
↓ 150 callersMethoduser_space
Gets the userspace of the current task.
kernel/src/context.rs:36
↓ 141 callersMethodread
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 callersMethodpush
(&self, observer: &Observer)
kernel/src/fs/epoll/entry.rs:295
↓ 136 callersMethodjoin
(&self)
kernel/src/thread/mod.rs:139
↓ 132 callersMethodclone
(&self)
kernel/src/fs/exfat/dentry.rs:748
↓ 131 callersMethodas_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 callersMethodbits
Iterates over the bits (i.e., the columns) of the row bitmap.
kernel/comps/console/src/font.rs:168
↓ 125 callersMethodstore
(&self, val: PageState, order: Ordering)
kernel/src/fs/utils/page_cache.rs:581
↓ 124 callersMethodlock
(&self)
kernel/src/process/process/mod.rs:148
↓ 117 callersMethodwrite_val
Writes `val` to the user space of the current process.
kernel/src/context.rs:147
↓ 115 callersFunctionwrite
()
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_blob.rs:326
↓ 108 callersFunctionread
()
kernel/comps/time/src/lib.rs:70
↓ 98 callersMethodclone
(&self)
ostd/src/bus/pci/capability/msix.rs:37
↓ 95 callersMethodcollect
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 callersMethodas_bytes
(&self)
kernel/src/fs/utils/mod.rs:96
↓ 86 callersMethodlen
(&self)
kernel/src/fs/utils/mod.rs:80
↓ 81 callersFunctionalloc
(guard: &DisabledLocalIrqGuard, layout: Layout)
osdk/deps/frame-allocator/src/cache.rs:120
↓ 78 callersMethodas_mut_slice
(&mut self)
kernel/comps/mlsdisk/src/layers/4-lsm/sstable.rs:567
↓ 75 callersMethodas_str
(&self)
kernel/src/fs/utils/mod.rs:88
↓ 74 callersFunctiondisable_preempt
()
ostd/src/task/preempt/guard.rs:46
↓ 74 callersMethodlen
(&self)
kernel/src/fs/exfat/dentry.rs:319
↓ 73 callersMethodpush
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 callersMethodlen
Returns the length of the edit group.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:51
↓ 72 callersMethodwrite
(&self, _reader: &mut VmReader)
kernel/src/fs/epoll/file.rs:261
↓ 71 callersMethodwrite_once
Write a specific configuration.
kernel/comps/virtio/src/transport/mod.rs:207
↓ 70 callersMethodlen
(&self)
ostd/src/boot/memory_region.rs:172
↓ 69 callersMethodcursor_mut
Creates a [`CursorMut`] to perform read- and write-related operations.
kernel/libs/xarray/src/lib.rs:218
↓ 65 callersMethodlookup
(&self, name: &str)
kernel/src/fs/ext2/inode.rs:181
↓ 64 callersMethodfs
(&self)
kernel/src/fs/ext2/inode.rs:81
↓ 63 callersMethodget
# Safety The caller must ensure that its context allows for safe access to `&T`.
ostd/src/arch/x86/kernel/apic/mod.rs:51
↓ 63 callersMethodpush
Adds an edit to the group.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:31
↓ 62 callersMethodborrow_file_table_mut
(&self)
kernel/src/process/posix_thread/thread_local.rs:82
↓ 61 callersMethodskip
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 callersMethodas_ref
(&self)
kernel/src/fs/utils/endpoint.rs:120
↓ 56 callersMethodis_empty
(&self)
kernel/src/fs/utils/mod.rs:84
↓ 56 callersMethodtake
(&'a mut self, range: &Range<K>)
kernel/src/vm/vmar/interval_set.rs:147
↓ 55 callersMethodread
(&self, writer: &mut VmWriter)
kernel/src/net/socket/mod.rs:127
↓ 54 callersMethodinsert
(&mut self, item: Arc<dyn FileLike>, flags: FdFlags)
kernel/src/fs/file_table.rs:102
↓ 53 callersMethoditer
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 callersFunctionsend
Sends a byte on the serial port.
ostd/src/arch/x86/serial.rs:26
↓ 51 callersMethodget_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 callersMethodfs
(&self)
kernel/src/fs/exfat/inode.rs:228
↓ 49 callersMethodas_mut
Coverts to mutably-borrowed buffer `BufMut`.
kernel/comps/mlsdisk/src/layers/0-bio/block_buf.rs:66
↓ 49 callersMethodcursor
Creates a [`Cursor`] to perform read-related operations.
kernel/libs/xarray/src/lib.rs:154
↓ 48 callersMethodwrite
(&mut self, register: u8, data: u32)
ostd/src/arch/x86/kernel/irq/ioapic.rs:187
↓ 47 callersMethodalloc_segment
Allocates a `DmaSegment` from the pool
kernel/comps/network/src/dma_pool.rs:99
↓ 47 callersMethoderror
(&self)
kernel/src/error.rs:176
↓ 47 callersMethoditer
Returns an iterator for iterating `DirEntryItem`s.
kernel/src/fs/ext2/dir.rs:178
↓ 47 callersMethodread_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 callersMethodwrite
(&self, reader: &mut dyn MultiRead)
kernel/src/fs/utils/channel.rs:292
↓ 46 callersMethodadd
Adds a CPU to the set.
ostd/src/cpu/set.rs:48
↓ 46 callersMethodas_ref
Converts to immutably-borrowed buffer `BufRef`.
kernel/comps/mlsdisk/src/layers/0-bio/block_buf.rs:61
↓ 46 callersMethodchecked_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 callersMethodinsert
(&mut self, sst: SSTable<K, V>, level: LsmLevel)
kernel/comps/mlsdisk/src/layers/4-lsm/tx_lsm_tree.rs:855
↓ 45 callersMethodremove
(&self, name: XattrName)
kernel/src/fs/ext2/xattr.rs:302
↓ 44 callersMethodas_posix_thread
(&self)
kernel/src/process/posix_thread/posix_thread_ext.rs:15
↓ 44 callersMethodfind
Finds a dentry by name. Returns error for negative entries.
kernel/src/fs/path/dentry.rs:448
↓ 44 callersMethoditer
Returns an iterator to the contained edits.
kernel/comps/mlsdisk/src/layers/2-edit/edits.rs:36
↓ 43 callersMethodclone
(&self)
kernel/src/net/socket/netlink/receiver.rs:13
↓ 43 callersMethodlock
Locks the mutex.
ostd/libs/linux-bzimage/setup/src/sync.rs:24
↓ 43 callersMethodread_time
(&self)
kernel/src/time/clocks/cpu_clock.rs:47
↓ 42 callersMethodpush_back
(&mut self, s: &str)
osdk/deps/test-kernel/src/path.rs:41
↓ 42 callersMethodread_once
Read a specific configuration.
kernel/comps/virtio/src/transport/mod.rs:161
↓ 42 callersMethodremain
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 callersMethodget
Gets a softirq line. The value of `id` must be within `0..NR_LINES`.
kernel/comps/softirq/src/lib.rs:69
↓ 41 callersMethodis_empty
(&self)
kernel/src/sched/sched_class/stop.rs:50
↓ 41 callersMethodlock
(&self)
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:247
↓ 41 callersFunctionmap
# Safety Mapping an incorrect address may lead to a kernel data leak.
ostd/src/arch/riscv/iommu/mod.rs:16
↓ 41 callersMethodstore
Stores the provided item at the target index.
kernel/libs/xarray/src/lib.rs:223
↓ 40 callersMethodpages
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 callersMethodread
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 callersFunctionkill
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 callersMethodread_val
Reads a value typed `Pod` from the user space of the current process.
kernel/src/context.rs:116
↓ 38 callersFunctiondisable_local
()
ostd/src/arch/x86/irq.rs:86
↓ 38 callersMethoditer
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 callersMethodclone
(&self)
kernel/libs/keyable-arc/src/lib.rs:225
↓ 37 callersMethodsplit
(self)
kernel/src/fs/utils/channel.rs:66
↓ 36 callersMethodfilter
(&self, _events: &E)
kernel/src/events/events.rs:35
↓ 36 callersMethodget
(&self)
kernel/src/sched/sched_class/policy.rs:75
↓ 36 callersMethodget
(&self, name: XattrName, value_writer: &mut VmWriter)
kernel/src/fs/ext2/xattr.rs:231
↓ 36 callersMethodinsert
(&mut self, path: I)
osdk/deps/test-kernel/src/path.rs:189
↓ 36 callersMethodnew_fs_child
Creates a new `Dentry` to represent the child directory of a file system.
kernel/src/fs/path/dentry.rs:527
↓ 36 callersMethodnotify
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 callersMethodclone
(&self)
kernel/src/process/process_vm/mod.rs:106
↓ 35 callersMethodget
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 callersMethodread
(&self, writer: &mut VmWriter)
kernel/src/syscall/eventfd.rs:175
↓ 35 callersMethodresolver
Returns the associated `FsResolver`.
kernel/src/fs/thread_info.rs:15
↓ 34 callersMethodas_ptr
Gets the pointer to the slot.
ostd/src/mm/heap/slot.rs:146
↓ 34 callersMethodas_ref
(&self)
kernel/src/net/socket/unix/stream/connected.rs:352
↓ 34 callersMethodas_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