MCPcopy Create free account

hub / github.com/asterinas/vostd / functions

Functions7,307 in github.com/asterinas/vostd

↓ 3 callersMethodread_bytes_at
(&self, offset: usize, buf: &mut [u8])
kernel/src/fs/file_handle.rs:127
↓ 3 callersFunctionread_clock
Reads the time of a clock specified by the input clock ID. If the clock ID does not support, this function will return `Err`.
kernel/src/syscall/clock_gettime.rs:114
↓ 3 callersMethodread_device_features
(&self)
kernel/comps/virtio/src/transport/pci/device.rs:150
↓ 3 callersMethodread_device_id
Reads the device ID from the I/O memory.
kernel/comps/virtio/src/transport/mmio/bus/common_device.rs:43
↓ 3 callersMethodread_fallible_with_max_len
Reads data from the `VmWriter` to the `RingBuffer` with the maximum length. Returns the number of bytes read.
kernel/src/util/ring_buffer.rs:432
↓ 3 callersFunctionread_file
test/src/apps/overlayfs/ovl_test.c:52
↓ 3 callersMethodread_jiffies
Reads the current time of this clock in [`Jiffies`].
kernel/src/time/clocks/cpu_clock.rs:41
↓ 3 callersMethodread_meta_at
(&self, offset: usize, buf: &mut [u8])
kernel/src/fs/exfat/fs.rs:164
↓ 3 callersMethodread_next_fat
(&self, cluster: ClusterID)
kernel/src/fs/exfat/fs.rs:169
↓ 3 callersMethodread_status
(&self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:154
↓ 3 callersMethodread_version
Reads the version number from the I/O memory.
kernel/comps/virtio/src/transport/mmio/bus/common_device.rs:48
↓ 3 callersFunctionread_xattr_name_cstr_from_user
( name_ptr: Vaddr, user_space: &CurrentUserSpace, )
kernel/src/syscall/setxattr.rs:154
↓ 3 callersMethodreadahead_range
(&self)
kernel/src/fs/utils/page_cache.rs:185
↓ 3 callersMethodreader
Creates a reader to read data from the user space of the current task. Returns `Err` if the `vaddr` and `len` do not represent a user space memory ra
kernel/src/context.rs:83
↓ 3 callersMethodreader
(&self)
kernel/comps/network/src/dma_pool.rs:238
↓ 3 callersMethodreader
Returns a reader to read data from it.
kernel/comps/block/src/bio.rs:489
↓ 3 callersMethodreaders_mut
Returns mutable reference to [`VmReader`]s.
kernel/src/util/iovec.rs:108
↓ 3 callersMethodreceive_data
(&mut self)
kernel/comps/keyboard/src/i8042_chip/controller.rs:195
↓ 3 callersFunctionreclaimable_memory_region
()
ostd/src/arch/x86/boot/smp.rs:141
↓ 3 callersMethodrecover_from
Recover from another `CryptoBlob`. If `CryptoBlob` doesn't have a valid version ID, e.g., payload decryption failed when `read`, user could call this
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_blob.rs:229
↓ 3 callersMethodrecvmsg
( &self, writer: &mut dyn MultiWrite, flags: SendRecvFlags, )
kernel/src/net/socket/ip/stream/mod.rs:562
↓ 3 callersMethodrelocated_addr_of
Gets the relocated address of an address in the original range. If the provided address is not in the original range, it will return `None`.
kernel/src/process/program_loader/elf/load_elf.rs:269
↓ 3 callersMethodremove_connecting_socket
Remove a connecting socket
kernel/src/net/socket/vsock/common.rs:113
↓ 3 callersMethodremove_entry_by_name
(&mut self, name: &str)
kernel/src/fs/utils/direntry_vec.rs:25
↓ 3 callersMethodremove_mapping
(&self, range: Range<usize>)
kernel/src/vm/vmar/mod.rs:550
↓ 3 callersMethodremove_member
Removes a member from the multicast group.
kernel/src/net/socket/netlink/table/multicast.rs:27
↓ 3 callersMethodremove_process
Removes a process from the process group. The caller needs to ensure that the process previously belonged to the process group, but now doesn't.
kernel/src/process/process/process_group.rs:104
↓ 3 callersMethodremove_process_group
Removes a process group from the session. The caller needs to ensure that the process group previously belonged to the session, but now doesn't.
kernel/src/process/process/session.rs:119
↓ 3 callersFunctionremovexattr
( file_ctx: XattrFileCtx, name_ptr: Vaddr, user_space: &CurrentUserSpace, ctx: &Context, )
kernel/src/syscall/removexattr.rs:44
↓ 3 callersFunctionrepo_dir
(repo: &Repository)
scripts/src/git.rs:33
↓ 3 callersMethodreset
Send a reset packet to reset a connection
kernel/src/net/socket/vsock/common.rs:167
↓ 3 callersMethodresize
(&mut self, new_size: usize)
kernel/src/fs/ramfs/fs.rs:231
↓ 3 callersMethodresize_mapping
Resizes the original mapping. The range of the mapping goes from `map_addr..map_addr + old_size` to `map_addr..map_addr + new_size`. If the new mapp
kernel/src/vm/vmar/mod.rs:101
↓ 3 callersMethodrestrict
(self)
kernel/src/net/socket/unix/cred.rs:64
↓ 3 callersMethodrestrict
(self)
kernel/src/process/credentials/static_cap.rs:40
↓ 3 callersMethodrgid
(&self)
kernel/src/process/credentials/static_cap.rs:162
↓ 3 callersMethodrobust_list
(&self)
kernel/src/process/posix_thread/thread_local.rs:74
↓ 3 callersFunctionroot_mount
()
kernel/src/fs/rootfs.rs:131
↓ 3 callersMethodroot_paddr
(&self)
ostd/src/arch/x86/iommu/dma_remapping/context_table.rs:54
↓ 3 callersFunctionrt_to_static
(prio: RealTimePriority)
kernel/src/syscall/sched_get_priority_max.rs:8
↓ 3 callersMethodruid
(&self)
kernel/src/process/credentials/static_cap.rs:52
↓ 3 callersMethodrun
Runs the process.
kernel/src/process/process/mod.rs:227
↓ 3 callersMethodsave
Saves CPU's current FPU context to this instance, if needed.
ostd/src/arch/riscv/cpu/context.rs:278
↓ 3 callersMethodsb
(&self)
kernel/src/fs/sysfs/fs.rs:51
↓ 3 callersMethodsched_poll
Returns a reference to the associated [`ScheduleNextPoll`].
kernel/libs/aster-bigtcp/src/iface/iface.rs:82
↓ 3 callersFunctionsem_sets
()
kernel/src/ipc/semaphore/system_v/sem_set.rs:293
↓ 3 callersMethodsend
Sends data to the UART.
ostd/src/arch/loongarch/serial.rs:41
↓ 3 callersMethodsend_ipi
(&self, icr: super::Icr)
ostd/src/arch/x86/kernel/apic/xapic.rs:80
↓ 3 callersMethodsendmsg
( &self, reader: &mut dyn MultiRead, message_header: MessageHeader, flags: Sen
kernel/src/net/socket/ip/stream/mod.rs:533
↓ 3 callersFunctionsession_table_mut
()
kernel/src/process/process_table.rs:112
↓ 3 callersMethodset
(&self, mut policy: SchedPolicy, update: impl FnOnce(SchedPolicy))
kernel/src/sched/sched_class/policy.rs:79
↓ 3 callersMethodset_atime
(&mut self, time: Duration)
kernel/src/fs/ext2/inode.rs:1290
↓ 3 callersMethodset_bg_color
(&mut self, val: Pixel)
kernel/comps/framebuffer/src/ansi_escape.rs:211
↓ 3 callersMethodset_bit
Set the given bit with one bit. # Panics The `index` must be within the total number of bits. Otherwise, this method panics.
kernel/comps/mlsdisk/src/util/bitmap.rs:76
↓ 3 callersFunctionset_blocking
test/src/apps/network/tcp_err.c:412
↓ 3 callersMethodset_child_tid
(mut self, set_child_tid: Vaddr)
kernel/src/process/posix_thread/builder.rs:77
↓ 3 callersMethodset_context
(&self, context: FpuContext)
kernel/src/process/posix_thread/thread_local.rs:160
↓ 3 callersMethodset_cur_layer
(&mut self, layer: LayerIdx)
kernel/src/fs/overlayfs/fs.rs:1045
↓ 3 callersMethodset_fg_color
(&mut self, val: Pixel)
kernel/comps/framebuffer/src/ansi_escape.rs:207
↓ 3 callersMethodset_mode
(&self, mode: InodeMode)
kernel/src/fs/procfs/template/mod.rs:86
↓ 3 callersMethodset_owner
Set a process (group) as owner of the file descriptor. Such that this process (group) will receive `SIGIO` and `SIGURG` signals for I/O events on the
kernel/src/fs/file_table.rs:332
↓ 3 callersMethodset_range_used
(&mut self, clusters: Range<ClusterID>, sync: bool)
kernel/src/fs/exfat/bitmap.rs:102
↓ 3 callersMethodset_rax
(&mut self, rax: usize)
ostd/src/arch/x86/tdx_guest.rs:146
↓ 3 callersMethodset_record_len
Modifies the distance to the next entry.
kernel/src/fs/ext2/dir.rs:70
↓ 3 callersMethodset_termios
(&mut self, termios: CTermios)
kernel/src/device/tty/line_discipline.rs:243
↓ 3 callersMethodset_timer_init_count
(&self, value: u64)
ostd/src/arch/x86/kernel/apic/xapic.rs:101
↓ 3 callersMethodset_used
(&mut self, cluster: u32, sync: bool)
kernel/src/fs/exfat/bitmap.rs:94
↓ 3 callersMethodset_vfork_child
Sets whether the process is the vfork child.
kernel/src/process/status.rs:64
↓ 3 callersFunctionsetxattr
( file_ctx: XattrFileCtx, name_ptr: Vaddr, value_ptr: Vaddr, value_len: usize, flags: i32,
kernel/src/syscall/setxattr.rs:94
↓ 3 callersMethodshow_attr
Shows the string value of an attribute. Most attributes are textual, rather binary. So using this `show_attr` method is more convenient than the `rea
kernel/comps/systree/src/node.rs:152
↓ 3 callersMethodshutdown
Shuts down the epoll entry. This method needs to be called in response to `EpollCtl::Del`.
kernel/src/fs/epoll/entry.rs:159
↓ 3 callersFunctionsingleton
Returns a reference to the global [`SysFs`] instance. Panics if not initialized.
kernel/src/fs/sysfs/mod.rs:18
↓ 3 callersMethodsize
The size of the file in bytes.
kernel/libs/cpio-decoder/src/lib.rs:257
↓ 3 callersMethodsize
Return the number of records in the table.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:260
↓ 3 callersMethodsize_to_blocks
(&self, size: usize)
kernel/src/fs/ext2/inode.rs:2199
↓ 3 callersMethodslave
(&self)
kernel/src/device/pty/master.rs:49
↓ 3 callersMethodsplit
Splits the mapping at the specified address. The address must be within the mapping and page-aligned. The address must not be either the start or the
kernel/src/vm/vmar/vm_mapping.rs:429
↓ 3 callersMethodsplit_free
Splits the buddy chunk into two smaller buddies. # Panics Panics if the buddy chunk is not uniquely free.
osdk/deps/frame-allocator/src/chunk.rs:205
↓ 3 callersMethodsplit_range
Splits the mapping at the specified address. There are four conditions: 1. |-outside `range`-| + |------------within `range`------------| 2. |-------
kernel/src/vm/vmar/vm_mapping.rs:476
↓ 3 callersFunctionsplit_to_chunks
Splits a range into chunks. A chunk must have a `1 << order` size and alignment, so a random page- aligned range might not be a chunk. This function
osdk/deps/frame-allocator/src/chunk.rs:45
↓ 3 callersMethodsub_assign
Subtracts a value to the per-CPU object in a single instruction. This operation wraps on overflow/underflow. Note that this memory operation will no
ostd/src/cpu/local/cell.rs:172
↓ 3 callersFunctionsubmit_work_item
Submit a work item to a global work queue.
kernel/src/thread/work_queue/mod.rs:95
↓ 3 callersMethodsync
(&mut self)
kernel/src/fs/exfat/bitmap.rs:381
↓ 3 callersMethodsync
(&self)
kernel/comps/network/src/buffer.rs:65
↓ 3 callersMethodsync
Sync the mutable `MemTable` with the given sync ID.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:110
↓ 3 callersMethodsync_metadata
(&self, fs_guard: &MutexGuard<()>)
kernel/src/fs/exfat/inode.rs:579
↓ 3 callersFunctionsystree_singleton
()
kernel/comps/systree/src/test.rs:111
↓ 3 callersMethodtail_file_name
(&self)
kernel/src/fs/fs_resolver.rs:378
↓ 3 callersMethodtail_with
Apply given function to the immutable tail.
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:653
↓ 3 callersMethodtimer
Gets the associated timer.
kernel/src/time/timerfd.rs:71
↓ 3 callersFunctiontlb_flush_addr
(vaddr: Vaddr)
ostd/src/arch/loongarch/mm/mod.rs:79
↓ 3 callersMethodtotal_data_nodes
(&self)
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_log.rs:332
↓ 3 callersMethodtotal_len
Returns the total length of the attribute (header + payload, excluding padding).
kernel/src/net/socket/netlink/message/attr/mod.rs:76
↓ 3 callersMethodtotal_len_with_padding
Returns the total length of the attribute (header + payload, including padding).
kernel/src/net/socket/netlink/message/attr/mod.rs:81
↓ 3 callersMethodtotal_size
Gets the total size of free chunks.
osdk/deps/frame-allocator/src/set.rs:25
↓ 3 callersMethodtrim
Trim the blocks before a specified position (exclusive). The purpose of this method is to free some memory used for keeping the MACs of accessible bl
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_chain.rs:185
↓ 3 callersMethodtry_shrink
Attempts to evict some blocks from cache if it exceeds the maximum size.
kernel/src/fs/ext2/indirect_block_cache.rs:99
↓ 3 callersMethodtype_
(&self)
kernel/src/fs/utils/systree_inode.rs:283
↓ 3 callersMethodtype_
(&self)
kernel/src/fs/exfat/inode.rs:1165
↓ 3 callersMethodtype_
(&self)
kernel/src/fs/procfs/template/dir.rs:92
← previousnext →1,301–1,400 of 7,307, ranked by callers