MCPcopy Create free account

hub / github.com/SmallPond/MIT6.828_OS / functions

Functions1,950 in github.com/SmallPond/MIT6.828_OS

↓ 314 callersFunctionprintf
Print to the given fd. Only understands %d, %x, %p, %s.
xv6-public/printf.c:39
↓ 260 callersFunctioncprintf
lab/lib/printf.c:50
↓ 245 callersFunctionexit
Exit the current process. Does not return. An exited process remains in the zombie state until its parent calls wait() to find out it exited.
xv6-public/proc.c:227
↓ 221 callersFunctionpanic
lab/fs/fsformat.c:49
↓ 135 callersFunctionpbuf_free
* Dereference a pbuf chain or queue and deallocate any no-longer-used * pbufs at the head of this chain or queue. * * Decrements the pbuf reference
lab/net/lwip/core/pbuf.c:456
↓ 128 callersFunctionclose
lab/lib/fd.c:149
↓ 115 callersFunctionpanic
xv6-public/sh.c:174
↓ 97 callersFunctionopen
Open a file (or directory). Returns: The file descriptor index on success -E_BAD_PATH if the path is too long (>= MAXPATHLEN) < 0 for other errors.
lab/lib/file.c:54
↓ 94 callersFunctionhtons
* Convert an u16_t from host- to network byte order. * * @param n u16_t in host byte order * @return n in network byte order */
lab/net/lwip/core/ipv4/inet.c:233
↓ 91 callersFunctionntohl
* Convert an u32_t from network- to host byte order. * * @param n u32_t in network byte order * @return n in host byte order */
lab/net/lwip/core/ipv4/inet.c:272
↓ 88 callersFunctioncprintf
lab/kern/printf.c:25
↓ 84 callersFunctionrelease
Release the lock.
xv6-public/spinlock.c:46
↓ 73 callersFunctionmemset
lab/lib/string.c:121
↓ 71 callersFunctionntohs
* Convert an u16_t from network- to host byte order. * * @param n u16_t in network byte order * @return n in host byte order */
lab/net/lwip/core/ipv4/inet.c:245
↓ 65 callersFunctionacquire
Acquire the lock. Loops (spins) until the lock is acquired. Holding a lock for a long time may cause other CPUs to waste time spinning to acquire it.
xv6-public/spinlock.c:24
↓ 64 callersFunctionoutb
lab/inc/x86.h:63
↓ 55 callersFunctionstrlen
lab/lib/string.c:11
↓ 53 callersFunctionhtonl
* Convert an u32_t from host- to network byte order. * * @param n u32_t in host byte order * @return n in network byte order */
lab/net/lwip/core/ipv4/inet.c:257
↓ 52 callersFunctionmyproc
Disable interrupts so that we are not rescheduled while reading proc from the cpu structure
xv6-public/proc.c:57
↓ 52 callersFunctionwrite
lab/lib/fd.c:238
↓ 50 callersFunctionpbuf_alloc
* Allocates a pbuf of the given type (possibly a chain for PBUF_POOL type). * * The actual memory allocated for the pbuf is determined by the * lay
lab/net/lwip/core/pbuf.c:112
↓ 47 callersFunctionoutb
xv6-public/x86.h:21
↓ 46 callersFunctionpbuf_header
* Adjusts the payload pointer to hide or reveal headers in the payload. * * Adjusts the ->payload pointer so that space for a header * (dis)appears
lab/net/lwip/core/pbuf.c:349
↓ 42 callersFunctionread
lab/lib/fd.c:204
↓ 39 callersFunctionbrelse
Release a locked buffer. Move to the head of the MRU list.
xv6-public/bio.c:120
↓ 39 callersFunctionip_addr_cmp
lab/net/lwip/core/ipv6/ip6_addr.c:48
↓ 38 callersFunctionip_addr_set
lab/net/lwip/core/ipv6/ip6_addr.c:57
↓ 38 callersFunctionmemp_free
* Put an element back into its pool. * * @param type the pool where to put mem * @param mem the memp element to free */
lab/net/lwip/core/memp.c:337
↓ 36 callersFunctionmemmove
lab/lib/string.c:141
↓ 35 callersFunctionbread
Return a locked buf with the contents of the indicated block.
xv6-public/bio.c:96
↓ 35 callersFunctionexit
lab/lib/exit.c:4
↓ 35 callersFunctionmem_free
* Free memory previously allocated by mem_malloc. Loads the pool number * and calls memp_free with that pool number to put the element back into * i
lab/net/lwip/core/mem.c:125
↓ 35 callersFunctionprintf
lab/lib/fprintf.c:69
↓ 32 callersFunctionsys_sem_signal
lab/net/lwip/jos/arch/sys_arch.c:158
↓ 31 callersFunctiondiskaddr
Return the virtual address of this disk block.
lab/fs/bc.c:5
↓ 31 callersFunctionmemset
xv6-public/ulib.c:36
↓ 31 callersFunctionmyproc
Disable interrupts so that we are not rescheduled while reading proc from the cpu structure
xv6-public/xv6.si4project/Backup/proc(6211).c:57
↓ 31 callersFunctionwait
Wait for a child process to exit and return its pid. Return -1 if this process has no children.
xv6-public/proc.c:272
↓ 30 callersFunctionstrcpy
lab/lib/string.c:31
↓ 29 callersFunctionmem_malloc
* Allocate memory: determine the smallest pool that is big enough * to contain an element of 'size' and get an element from that pool. * * @param s
lab/net/lwip/core/mem.c:85
↓ 29 callersFunctionsys_yield
lab/lib/syscall.c:64
↓ 28 callersFunctionmemmove
xv6-public/ulib.c:95
↓ 27 callersFunctionenvid2env
Converts an envid to an env pointer. If checkperm is set, the specified environment must be either the current environment or an immediate child of th
lab/kern/env.c:75
↓ 27 callersFunctionfork
Create a new process copying p as the parent. Sets up stack to return as if from system call. Caller must set state of returned proc to RUNNABLE.
xv6-public/proc.c:180
↓ 27 callersFunctionip_addr_isany
lab/net/lwip/core/ipv6/ip6_addr.c:67
↓ 27 callersFunctionpage_alloc
Allocates a physical page. If (alloc_flags & ALLOC_ZERO), fills the entire returned physical page with '\0' bytes. Does NOT increment the reference
lab/kern/pmap.c:408
↓ 27 callersFunctionsys_page_alloc
lab/lib/syscall.c:70
↓ 26 callersFunctioncprintf
Print to the console. only understands %d, %x, %p, %s.
xv6-public/console.c:54
↓ 26 callersFunctionsnprintf
lab/lib/printfmt.c:296
↓ 25 callersFunctionend_op
called at the end of each FS system call. commits if this was the last outstanding operation.
xv6-public/log.c:151
↓ 25 callersFunctionfork
User-level fork with copy-on-write. Set up our page fault handler appropriately. Create a child. Copy our address space and page fault handler setup t
lab/lib/fork.c:117
↓ 25 callersFunctionpage2pa
lab/kern/pmap.h:71
↓ 24 callersFunctionmycpu
Must be called with interrupts disabled to avoid the caller being rescheduled between reading lapicid and running through the loop.
xv6-public/proc.c:37
↓ 24 callersFunctionsys_page_unmap
lab/lib/syscall.c:82
↓ 23 callersFunctiondhcp_option
* Concatenate an option type and length field to the outgoing * DHCP message. * */
lab/net/lwip/core/dhcp.c:1111
↓ 21 callersFunctionipc_send
Send 'val' (and 'pg' with 'perm', if 'pg' is nonnull) to 'toenv'. This function keeps trying until it succeeds. It should panic() on any error other t
lab/lib/ipc.c:51
↓ 21 callersFunctioniunlockput
Common idiom: unlock, then put.
xv6-public/fs.c:356
↓ 21 callersFunctionlapicw
lab/kern/lapic.c:48
↓ 21 callersFunctionpage_insert
Map the physical page 'pp' at virtual address 'va'. The permissions (the low 12 bits) of the page table entry should be set to 'perm|PTE_P'. Requirem
lab/kern/pmap.c:573
↓ 21 callersFunctionxint
xv6-public/mkfs.c:55
↓ 20 callersFunctioninb
lab/inc/x86.h:12
↓ 20 callersFunctionlapicw
PAGEBREAK!
xv6-public/lapic.c:47
↓ 20 callersFunctionmemcpy
lab/lib/string.c:208
↓ 20 callersFunctionsnmp_asn1_enc_length
* Encodes host order length field into a pbuf chained ASN1 msg. * * @param p points to output pbuf to encode length into * @param ofs points to the
lab/net/lwip/core/snmp/asn1_enc.c:212
↓ 20 callersFunctionsnmp_asn1_enc_length_cnt
* Returns octet count for length. * * @param length * @param octets_needed points to the return value */
lab/net/lwip/core/snmp/asn1_enc.c:49
↓ 20 callersFunctionsnmp_asn1_enc_type
* Encodes ASN type field into a pbuf chained ASN1 msg. * * @param p points to output pbuf to encode value into * @param ofs points to the offset wi
lab/net/lwip/core/snmp/asn1_enc.c:180
↓ 20 callersFunctionsnmp_inc_snmpinasnparseerrs
lab/net/lwip/core/snmp/mib2.c:1949
↓ 19 callersFunctioncheck_va2pa
lab/kern/pmap.c:1030
↓ 19 callersFunctioninet_ntoa
* Convert numeric IP address into decimal dotted ASCII representation. * returns ptr to static buffer; not reentrant! * * @param addr ip address in
lab/net/lwip/core/ipv4/inet.c:182
↓ 19 callersFunctionpbuf_realloc
* Shrink a pbuf chain to a desired length. * * @param p pbuf to shrink. * @param new_len desired new length of pbuf chain * * Depending on the de
lab/net/lwip/core/pbuf.c:268
↓ 19 callersFunctionsys_getenvid
lab/lib/syscall.c:58
↓ 18 callersFunctionilock
Lock the given inode. Reads the inode from disk if necessary.
xv6-public/fs.c:288
↓ 18 callersFunctionsys_timeout
* Create a one-shot timer (aka timeout). Timeouts are processed in the * following cases: * - while waiting for a message using sys_mbox_fetch() *
lab/net/lwip/core/sys.c:187
↓ 17 callersFunctioninb
xv6-public/x86.h:3
↓ 17 callersFunctionipc_recv
Receive a value via IPC and return it. If 'pg' is nonnull, then any page sent by the sender will be mapped at that address. If 'from_env_store' is non
lab/lib/ipc.c:22
↓ 17 callersFunctionsnmp_error_response
lab/net/lwip/core/snmp/msg_in.c:96
↓ 17 callersFunctionstrcmp
lab/lib/string.c:79
↓ 16 callersFunctiondhcp_option_byte
* Concatenate a single byte to the outgoing DHCP message. * */
lab/net/lwip/core/dhcp.c:1122
↓ 16 callersFunctiondup
Make file descriptor 'newfdnum' a duplicate of file descriptor 'oldfdnum'. For instance, writing onto either file descriptor will affect the file and
lab/lib/fd.c:174
↓ 16 callersFunctioninitlock
xv6-public/spinlock.c:12
↓ 16 callersFunctionpage_free
Return a page to the free list. (This function should only be called when pp->pp_ref reaches 0.)
lab/kern/pmap.c:436
↓ 16 callersFunctionpgdir_walk
Given 'pgdir', a pointer to a page directory, pgdir_walk returns a pointer to the page table entry (PTE) for linear address 'va'. This requires walkin
lab/kern/pmap.c:482
↓ 16 callersFunctionputch
lab/lib/printf.c:26
↓ 16 callersFunctionsyscall
lab/lib/syscall.c:6
↓ 16 callersFunctionsyscall
lab/lab6.si4project/Backup/syscall(6702).c:6
↓ 15 callersFunctionget_socket
* Map a externally used socket index to the internal socket representation. * * @param s externally used socket index * @return struct lwip_socket
lab/net/lwip/api/sockets.c:185
↓ 14 callersFunctionargint
Fetch the nth 32-bit system call argument.
xv6-public/syscall.c:49
↓ 14 callersFunctionfree
lab/lib/malloc.c:114
↓ 14 callersFunctionpbuf_clen
lab/net/lwip/core/pbuf.c:531
↓ 14 callersFunctionpppAppend
* pppAppend - append given character to end of given pbuf. If outACCM * is not NULL and the character needs to be escaped, do so. * If pbuf is full
lab/net/lwip/netif/ppp/ppp.c:753
↓ 14 callersFunctionsleep
Atomically release lock and sleep on chan. Reacquires lock when awakened.
xv6-public/proc.c:417
↓ 14 callersFunctionsys_page_map
lab/lib/syscall.c:76
↓ 14 callersFunctionsys_time_msec
lab/lib/syscall.c:120
↓ 14 callersFunctionsyscall
lab/lab6.si4project/Backup/syscall(3019).c:6
↓ 13 callersFunctionfd_lookup
Check that fdnum is in range and mapped. If it is, set *fd_store to the fd page virtual address. Returns 0 on success (the page is in range and mappe
lab/lib/fd.c:73
↓ 13 callersFunctionfsm_sdata
* fsm_sdata - Send some data. * * Used for all packets sent to our peer by this module. */
lab/net/lwip/netif/ppp/fsm.c:333
↓ 13 callersFunctionip_route
* Finds the appropriate network interface for a given IP address. It * searches the list of network interfaces linearly. A match is found * if the m
lab/net/lwip/core/ipv4/ip.c:68
↓ 13 callersFunctionsys_cputs
lab/lib/syscall.c:40
↓ 13 callersFunctionudp_connect
* Connect an UDP PCB. * * This will associate the UDP PCB with the remote address. * * @param pcb UDP PCB to be connected with remote address ipad
lab/net/lwip/core/udp.c:661
↓ 13 callersFunctionwait
Waits until 'envid' exits.
lab/lib/wait.c:4
next →1–100 of 1,950, ranked by callers