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
↓ 2 callers
Method
check_mountpoint_then_find
Checks if dentry is a mount point, then retrieves it.
kernel/src/fs/path/dentry.rs:485
↓ 2 callers
Function
check_sem
Checks the semaphore. Return Ok if the semaphore exists and pass the check.
kernel/src/ipc/semaphore/system_v/sem_set.rs:256
↓ 2 callers
Method
check_signal_perm
Checks whether the signal can be delivered to the thread. For a signal can be delivered to the thread, the sending thread must either be privileged,
kernel/src/process/posix_thread/mod.rs:143
↓ 2 callers
Method
check_state
Checks the TCP state for additional events and whether the connection is dead.
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:118
↓ 2 callers
Method
check_uid_perm
For `setreuid`, ruid can *NOT* be set to old suid, while for `setresuid`, ruid can be set to old suid.
kernel/src/process/credentials/credentials_.rs:197
↓ 2 callers
Method
checksum
(&self)
kernel/src/fs/exfat/dentry.rs:690
↓ 2 callers
Function
claim
()
ostd/src/arch/loongarch/kernel/irq/mod.rs:26
↓ 2 callers
Method
class
(&self)
kernel/src/net/socket/netlink/route/message/attr/link.rs:95
↓ 2 callers
Function
clean_up
test/src/apps/overlayfs/ovl_test.c:113
↓ 2 callers
Method
clear
Clears the corresponding [`XArray`].
kernel/libs/xarray/src/lib.rs:208
↓ 2 callers
Method
clear
Empty the buffer.
kernel/comps/mlsdisk/src/layers/5-disk/data_buf.rs:99
↓ 2 callers
Method
clear_nonexistent_cpu_bits
(&mut self)
ostd/src/cpu/set.rs:133
↓ 2 callers
Method
clear_old_group_and_session
( &self, process_group_mut: &mut MutexGuard<Weak<ProcessGroup>>, session_table_mut: &m
kernel/src/process/process/mod.rs:377
↓ 2 callers
Method
clear_parent
Clears the parent pointers of this node and all its descendant nodes. This method should be invoked when the node is being removed from the tree.
kernel/libs/xarray/src/node.rs:198
↓ 2 callers
Method
clear_parent_death_signal
Clears the parent death signal.
kernel/src/process/process/mod.rs:646
↓ 2 callers
Method
clear_root_vmar
Clears all content of the root VMAR.
kernel/src/vm/vmar/mod.rs:533
↓ 2 callers
Method
clear_signalled_waker
Clears the signalled waker of this thread.
kernel/src/process/posix_thread/mod.rs:201
↓ 2 callers
Method
clone
(&self)
kernel/src/process/credentials/user.rs:66
↓ 2 callers
Method
clone
(&self)
kernel/src/fs/inode_handle/dyn_cap.rs:59
↓ 2 callers
Method
clone
(&self)
kernel/src/fs/utils/inode.rs:698
↓ 2 callers
Function
clone_child_cleartid
( child_builder: PosixThreadBuilder, child_tidptr: Vaddr, clone_flags: CloneFlags, )
kernel/src/process/clone.rs:420
↓ 2 callers
Function
clone_child_settid
( child_builder: PosixThreadBuilder, child_tidptr: Vaddr, clone_flags: CloneFlags, )
kernel/src/process/clone.rs:432
↓ 2 callers
Function
clone_files
(parent_file_table: &RwArc<FileTable>, clone_flags: CloneFlags)
kernel/src/process/clone.rs:509
↓ 2 callers
Function
clone_fs
(parent_fs: &Arc<ThreadFsInfo>, clone_flags: CloneFlags)
kernel/src/process/clone.rs:501
↓ 2 callers
Method
clone_mount_node
Clones a mount node with the an root `Dentry_`. The new mount node will have the same fs as the original one and have no parent and children. We shou
kernel/src/fs/path/mount.rs:106
↓ 2 callers
Function
clone_parent_settid
( child_tid: Tid, parent_tidptr: Option<Vaddr>, clone_flags: CloneFlags, )
kernel/src/process/clone.rs:444
↓ 2 callers
Function
clone_sysvsem
(clone_flags: CloneFlags)
kernel/src/process/clone.rs:532
↓ 2 callers
Function
clone_user_ctx
( parent_context: &UserContext, new_sp: u64, stack_size: Option<NonZeroU64>, tls: u64, clo
kernel/src/process/clone.rs:467
↓ 2 callers
Method
close_files
(&mut self, should_close: F)
kernel/src/fs/file_table.rs:137
↓ 2 callers
Method
cluster_size
(&self)
kernel/src/fs/exfat/fat.rs:99
↓ 2 callers
Method
cmp
(&self, other: &Self)
kernel/libs/aster-bigtcp/src/iface/poll_iface.rs:154
↓ 2 callers
Method
cmp
(&self, other: &Self)
kernel/libs/keyable-arc/src/lib.rs:205
↓ 2 callers
Method
cnt_to_next_indirect
Returns the number of blocks remaining before the next indirect block is required.
kernel/src/fs/ext2/block_ptr.rs:132
↓ 2 callers
Method
command
Gets the PCI Command
ostd/src/bus/pci/common_device.rs:44
↓ 2 callers
Method
commit
Commit the current edit group.
kernel/comps/mlsdisk/src/layers/2-edit/journal.rs:216
↓ 2 callers
Method
commit
Commits the current TX. If the returned value is `Ok`, then the TX is committed successfully. Otherwise, the TX is aborted.
kernel/comps/mlsdisk/src/tx/current.rs:48
↓ 2 callers
Method
commit_on
Commits a page at a specific page index. This method may involve I/O operations if the VMO needs to fecth a page from the underlying page cache.
kernel/src/vm/vmar/vm_mapping.rs:614
↓ 2 callers
Function
common_def_path_str
def path for function, type, static variables and trait methods
kernel/libs/comp-sys/cargo-component/analysis/src/lib.rs:268
↓ 2 callers
Method
complete
Complete one slot within the range, with the specific key and the queried value.
kernel/comps/mlsdisk/src/layers/4-lsm/range_query_ctx.rs:61
↓ 2 callers
Method
config_msix_irq
Get config space change MSI-X IRQ, this function will return the MSI-X vector and corresponding IRQ.
kernel/comps/virtio/src/transport/pci/msix.rs:38
↓ 2 callers
Method
conflict_with
Checks if this lock conflicts with another lock Returns true if there is a conflict, otherwise false
kernel/src/fs/utils/range_lock/mod.rs:71
↓ 2 callers
Method
connect
(&self)
kernel/src/net/socket/unix/addr.rs:41
↓ 2 callers
Method
connect_state
Returns the state of the connecting procedure.
kernel/libs/aster-bigtcp/src/socket/bound/tcp_conn.rs:338
↓ 2 callers
Function
consts
()
kernel/src/sched/sched_class/time.rs:37
↓ 2 callers
Method
contains_unsynced
Whether the value contains an unsynced value.
kernel/comps/mlsdisk/src/layers/4-lsm/mem_table.rs:336
↓ 2 callers
Method
continue_traverse_to_target
Traverses from an interior node to the leaf node according to the target index. This method will not create new nodes. If the cursor can not reach th
kernel/libs/xarray/src/cursor.rs:156
↓ 2 callers
Function
convert_to_time_duration
FIXME: need to further check precision loss convert core::time::Duration to time::Duration
kernel/src/time/system_time.rs:108
↓ 2 callers
Function
copy_iovs_and_convert
The util function for create [`VmReader`]/[`VmWriter`]s.
kernel/src/util/iovec.rs:57
↓ 2 callers
Method
count
(&self)
kernel/src/fs/utils/dirent_visitor.rs:47
↓ 2 callers
Method
count
Returns the number of CPUs in the set.
ostd/src/cpu/set.rs:74
↓ 2 callers
Method
count_events_from
Counts the number of the ready files from the given index.
kernel/src/syscall/poll.rs:185
↓ 2 callers
Method
count_num_sub_inode_and_dir
(&self, fs_guard: &MutexGuard<()>)
kernel/src/fs/exfat/inode.rs:245
↓ 2 callers
Method
cpu_affinity
Sets the CPU affinity of the new thread.
kernel/src/thread/kernel_thread.rs:40
↓ 2 callers
Method
cpu_affinity
(&self)
kernel/src/thread/work_queue/work_item.rs:33
↓ 2 callers
Method
cpu_exception
Get corresponding CPU exception
ostd/src/arch/riscv/cpu/context.rs:98
↓ 2 callers
Method
create
(&self, name: Arc<[u8]>)
kernel/src/net/socket/unix/ns/abs.rs:41
↓ 2 callers
Method
create_master_slave_pair
Create the master and slave pair.
kernel/src/fs/devpts/mod.rs:63
↓ 2 callers
Function
create_raw_log_store
()
kernel/comps/mlsdisk/src/layers/3-log/raw_log.rs:1094
↓ 2 callers
Function
create_timer
Creates a timer associated with the specified clock ID. This timer will invoke the given callback function (`func`) when it expires.
kernel/src/syscall/timer_create.rs:127
↓ 2 callers
Method
create_virtual_timer
Creates a timer based on the user CPU clock of the current thread.
kernel/src/process/posix_thread/mod.rs:263
↓ 2 callers
Method
cred
(&self)
kernel/src/net/socket/unix/stream/listener.rs:95
↓ 2 callers
Method
credit_request
Request the peer to send the credit info to us
kernel/comps/virtio/src/device/socket/device.rs:166
↓ 2 callers
Method
credit_update
Tell the peer our credit info
kernel/comps/virtio/src/device/socket/device.rs:175
↓ 2 callers
Method
ctime
(&self)
kernel/src/fs/ext2/inode.rs:1302
↓ 2 callers
Method
current
Returns the current thread. This function returns `None` if the current task is not associated with a thread, or if called within the bootstrap conte
kernel/src/thread/mod.rs:94
↓ 2 callers
Function
current_thread_sender_ids
(signum: Option<&SigNum>, ctx: &Context)
kernel/src/process/kill.rs:172
↓ 2 callers
Method
daddr
(&self)
kernel/comps/network/src/buffer.rs:75
↓ 2 callers
Function
dealloc
(guard: &DisabledLocalIrqGuard, addr: Paddr, size: usize)
osdk/deps/frame-allocator/src/cache.rs:138
↓ 2 callers
Method
dec_free_blocks
(&mut self, count: u16)
kernel/src/fs/ext2/block_group.rs:439
↓ 2 callers
Method
dec_free_inodes
(&mut self)
kernel/src/fs/ext2/block_group.rs:426
↓ 2 callers
Method
decommit_pages
( &self, mut locked_pages: LockedXArray<UFrame>, range: Range<usize>, )
kernel/src/vm/vmo/mod.rs:438
↓ 2 callers
Function
def_path_if_invalid_access
(def_id: DefId, tcx: TyCtxt<'_>)
kernel/libs/comp-sys/cargo-component/analysis/src/lib.rs:213
↓ 2 callers
Method
del_interest
(&self, fd: FileDesc, file: KeyableWeak<dyn FileLike>)
kernel/src/fs/epoll/file.rs:124
↓ 2 callers
Method
deref
(&self)
ostd/src/cpu/local/mod.rs:150
↓ 2 callers
Method
deref
(&self)
ostd/src/sync/rcu/non_null/mod.rs:374
↓ 2 callers
Method
deref_mut
(&mut self)
ostd/src/arch/x86/kernel/irq/mod.rs:147
↓ 2 callers
Function
deserialize_toml_manifest
(path: impl AsRef<Path>)
osdk/src/config/manifest.rs:107
↓ 2 callers
Method
destroy
(&self)
kernel/src/thread/work_queue/worker.rs:117
↓ 2 callers
Method
device_id
PCI device ID
ostd/src/bus/pci/common_device.rs:24
↓ 2 callers
Method
devpts
(&self)
kernel/src/fs/devpts/ptmx.rs:52
↓ 2 callers
Method
disable_callback
Disables registered callbacks. That is to say, the queue won't generate interrupts after calling this method.
kernel/comps/virtio/src/queue.rs:381
↓ 2 callers
Function
disable_local_if
(cond: bool)
ostd/src/arch/x86/trap/mod.rs:155
↓ 2 callers
Method
dispatch
(&self, pkt: &Packet, iface_cx: &mut Context, tx_token: T)
kernel/libs/aster-bigtcp/src/iface/phy/ether.rs:200
↓ 2 callers
Function
do_accept
( sockfd: FileDesc, sockaddr_ptr: Vaddr, addrlen_ptr: Vaddr, flags: Flags, ctx: &Context,
kernel/src/syscall/accept.rs:43
↓ 2 callers
Function
do_alloc_dealloc_tx
(chunk_alloc: &ChunkAlloc, alloc_cnt: usize, dealloc_cnt: usize)
kernel/comps/mlsdisk/src/layers/3-log/chunk.rs:437
↓ 2 callers
Method
do_build
(&mut self, data_node_entries: Vec<MhtNodeEntry>)
kernel/comps/mlsdisk/src/layers/1-crypto/crypto_log.rs:437
↓ 2 callers
Function
do_clock_nanosleep
( clockid: clockid_t, is_abs_time: bool, request_timespec_addr: Vaddr, remain_timespec_addr: V
kernel/src/syscall/nanosleep.rs:60
↓ 2 callers
Method
do_contain_log
(&self, log_id: TxLogId, state: &State, current_tx: &CurrentTx<'_>)
kernel/comps/mlsdisk/src/layers/3-log/tx_log.rs:629
↓ 2 callers
Function
do_dealloc
( local_pool: &mut BuddySet<MAX_LOCAL_BUDDY_ORDER>, global_pool: &mut OnDemandGlobalLock, segments
osdk/deps/frame-allocator/src/pools/mod.rs:122
↓ 2 callers
Function
do_dup3
( old_fd: FileDesc, new_fd: FileDesc, flags: FdFlags, ctx: &Context, )
kernel/src/syscall/dup.rs:49
↓ 2 callers
Function
do_execve
( elf_file: Dentry, argv_ptr_ptr: Vaddr, envp_ptr_ptr: Vaddr, ctx: &Context, user_context:
kernel/src/syscall/execve.rs:83
↓ 2 callers
Function
do_fallocate_util
( inode: &Arc<dyn Inode>, status_flags: StatusFlags, mode: FallocMode, offset: usize, len:
kernel/src/fs/inode_handle/mod.rs:373
↓ 2 callers
Function
do_futimesat
Sets the access and modification times for a file, specified by a pathname relative to the directory file descriptor `dirfd`.
kernel/src/syscall/utimens.rs:184
↓ 2 callers
Function
do_new_base_crate
( base_crate_path: impl AsRef<Path>, dep_crate_name: &str, dep_crate_path: impl AsRef<Path>, l
osdk/src/base_crate/mod.rs:115
↓ 2 callers
Function
do_poll
(poll_fds: &[PollFd], timeout: Option<&Duration>, ctx: &Context)
kernel/src/syscall/poll.rs:83
↓ 2 callers
Function
do_resize_util
( inode: &Arc<dyn Inode>, status_flags: StatusFlags, new_size: usize, )
kernel/src/fs/inode_handle/mod.rs:400
↓ 2 callers
Function
do_schedule
( taskless: &Arc<Taskless>, taskless_list: &'static StaticCpuLocal<RefCell<LinkedList<TasklessAdapter>
kernel/comps/softirq/src/taskless.rs:120
↓ 2 callers
Function
do_seek_util
(inode: &Arc<dyn Inode>, offset: &Mutex<usize>, pos: SeekFrom)
kernel/src/fs/inode_handle/mod.rs:344
↓ 2 callers
Function
do_smart_wakeup_zero
Wakeup all wait for zero tasks, ref: <https://elixir.bootlin.com/linux/v6.0.9/source/ipc/sem.c#L893>
kernel/src/ipc/semaphore/system_v/sem.rs:265
↓ 2 callers
Function
do_sys_eventfd2
(init_val: u64, flags: Flags, ctx: &Context)
kernel/src/syscall/eventfd.rs:54
← previous
next →
1,501–1,600 of 7,307, ranked by callers