Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dddrrreee/cs140e-20win
/ functions
Functions
1,429 in github.com/dddrrreee/cs140e-20win
⨍
Functions
1,429
◇
Types & classes
378
↓ 283 callers
Function
printk
fake version of printk: just call printf.
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:146
↓ 57 callers
Function
memset
libpi/libc/memset.c:3
↓ 51 callers
Function
strcmp
libpi/libc/strcmp.c:3
↓ 40 callers
Function
strlen
libpi/libc/strlen.c:3
↓ 37 callers
Function
clean_reboot
should have a way to flush all output from the pi. right now we just delay, but this is not perfect and, also, gross. viva la cs140e!
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:161
↓ 27 callers
Function
uart_init
called first to setup uart to 8n1 115200 baud, no interrupts. - you will need memory barriers, use <dev_barrier()> later: should add an init that ta
labs/4-uart/uart/uart.c:20
↓ 26 callers
Function
trace
do you really want to expose all of this stuff?
labs/5-replay/code/interpose.c:143
↓ 25 callers
Function
lex_getc
read byte from <l>
labs/9-esp8266/libesp/esp-lex.c:84
↓ 23 callers
Function
bb_fullpath
All the paths I see are relative to the root of the mounted filesystem. In order to get to the underlying filesystem, I need to have the mountpoint.
labs/12-fuse/0-examples/bbfs.c:51
↓ 23 callers
Function
memcpy
libpi/libc/memcpy.c:6
↓ 20 callers
Function
cq_empty
* inline these so they can be used when we bit-bang off the UART with no interrupts. */
labs/6-threads/2-threads.new/circular.h:81
↓ 18 callers
Function
uart_putc
put one byte on the tx qqueue, if needed, blocks until TX has space.
labs/4-uart/uart/uart.c:41
↓ 17 callers
Function
match_line
semantics: match a single line of text: ends with a \r\n
labs/10-esp8266/libesp/esp-parse.c:254
↓ 16 callers
Function
fake_random
labs/3-cross-check/fake-put-get/pi-test.h:6
↓ 16 callers
Function
lex_peek
non-destructively gets the next character in the input stream.
labs/9-esp8266/libesp/esp-lex.c:99
↓ 15 callers
Function
cq_nelem
labs/6-threads/2-threads.new/circular.h:86
↓ 15 callers
Function
delay_ms
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:143
↓ 14 callers
Function
lo_data
labs/12-fuse/0-examples/fuse-examples/passthrough_ll.c:131
↓ 14 callers
Function
lo_debug
labs/12-fuse/0-examples/fuse-examples/passthrough_ll.c:149
↓ 13 callers
Function
strcat
uclibc: Append SRC on the end of DEST. */
libpi/libc/strcat.c:4
↓ 13 callers
Function
toLocalString
labs/12-fuse/0-examples/fuse-examples/cxxopts.hpp:74
↓ 12 callers
Function
lo_fd
labs/12-fuse/0-examples/fuse-examples/passthrough_ll.c:144
↓ 12 callers
Function
match_tok
slightly different semantics: we match prefix (other than blank spaces), but reject if it is a substring of a longer token. for example: "var" would n
labs/10-esp8266/libesp/esp-parse.c:159
↓ 12 callers
Function
put_byte
labs/11-fuse/0-my-install/send-recv.c:6
↓ 11 callers
Function
dev_barrier
libpi-fake/fake-dev-barrier.c:7
↓ 11 callers
Function
die
send the unix side an error code and reboot.
labs/2-bootloader/pi-side/bootloader.c:46
↓ 11 callers
Function
gpio_set_output
set <pin> to be an output pin. note: fsel0, fsel1, fsel2 are contiguous in memory, so you can use array calculations!
labs/1-gpio/part1-led/gpio.c:45
↓ 11 callers
Function
kmalloc
* Return a memory block of at least size <nbytes> * Notes: * - There is no free, so is trivial: should be just * a few lines of code. * - Th
labs/6-threads/1-kmalloc/kmalloc.c:20
↓ 10 callers
Function
int_init
initialize global interrupt state.
labs/7-interrupts/1-syscall/interrupts-c.c:5
↓ 10 callers
Function
uart_init
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:139
↓ 10 callers
Function
write_cyc_until
write value <v> to GPIO <pin>: return when <ncycles> have passed since time <start>
labs/4-uart/cycle-counter-ex/cycle-util.h:21
↓ 9 callers
Function
at_cmd_extra
labs/10-esp8266/libesp/esp-run.c:247
↓ 9 callers
Method
count
labs/12-fuse/0-examples/fuse-examples/cxxopts.hpp:1041
↓ 9 callers
Function
gpio_set_off
set GPIO <pin> off
labs/1-gpio/part1-led/gpio.c:57
↓ 9 callers
Function
lo_inode
labs/12-fuse/0-examples/fuse-examples/passthrough_ll.c:136
↓ 9 callers
Function
timer_get_usec
labs/2-bootloader/pi-side/libpi.small/timer.c:11
↓ 8 callers
Function
at_cmd_extra
labs/9-esp8266/libesp/esp-run.c:139
↓ 8 callers
Function
delay_us
just delay using your laptop methods.
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:142
↓ 8 callers
Function
get_byte
labs/11-fuse/0-my-install/send-recv.c:13
↓ 8 callers
Function
integer_parser
labs/12-fuse/0-examples/fuse-examples/cxxopts.hpp:537
↓ 8 callers
Function
kmalloc_init
* One-time initialization, called before kmalloc * to setup heap. * - should be just a few lines of code. * - sets heap pointer to the loca
labs/6-threads/1-kmalloc/kmalloc.c:44
↓ 8 callers
Function
mmu_map_section
create a mapping for <va> to <pa> in the page table <pt> for now: - assume domain = 0. - global mapping - executable - don't use APX - TEX,A,B: for to
labs/15-vm-ops/code/mmu.c:36
↓ 8 callers
Function
open_tty
attempt to open tty <device>, retries some number of times if fails. otherwise panics.
labs/2-bootloader/unix-side/libunix/open-tty.c:9
↓ 8 callers
Function
printk
libpi/libc/printk.c:6
↓ 8 callers
Function
set_tty_to_8n1
labs/5-replay/useful-examples/pty-ex.c:23
↓ 8 callers
Function
skip_blank_space
labs/10-esp8266/libesp/esp-parse.c:43
↓ 8 callers
Method
value
labs/12-fuse/0-examples/fuse-examples/cxxopts.hpp:1088
↓ 7 callers
Function
cq_pop
called from user space.
labs/6-threads/2-threads.new/circular.c:53
↓ 7 callers
Function
emit
libpi/libc/va-printk.c:71
↓ 7 callers
Function
fioc_file_type
labs/12-fuse/0-examples/examples/fioc.c:62
↓ 7 callers
Function
fioc_file_type
labs/12-fuse/0-examples/fuse-examples/ioctl.c:75
↓ 7 callers
Function
get32
labs/11-fuse/2-fake-pi/unix-side/fake-pi.c:123
↓ 7 callers
Function
gpio_write
set <pin> to <v> (v \in {0,1})
labs/1-gpio/part1-led/gpio.c:79
↓ 7 callers
Function
is_attr
labs/13-fat32/1-code/fat32-lfn-helpers.c:7
↓ 7 callers
Function
kmalloc_aligned
address of returned pointer should be a multiple of alignment.
labs/6-threads/1-kmalloc/kmalloc.c:27
↓ 6 callers
Function
can_read_timeout
cut this out.
labs/10-esp8266/libesp/unix-support.c:66
↓ 6 callers
Function
cmd_echo_line
echo the current line out, printing <msg>
labs/10-esp8266/libesp/esp-run.c:16
↓ 6 callers
Function
cmd_response
labs/10-esp8266/libesp/esp-run.c:146
↓ 6 callers
Function
cq_init
labs/6-threads/2-threads.new/circular.c:18
↓ 6 callers
Function
cq_nelem
libpi/libc/circular.h:62
↓ 6 callers
Function
cq_push_n
labs/6-threads/2-threads.new/circular.c:71
↓ 6 callers
Function
esp_has_data_timeout
labs/10-esp8266/libesp/pi-support.c:20
↓ 6 callers
Function
esp_usleep
sleep for <usec> microseconds.
labs/10-esp8266/libesp/pi-support.c:26
↓ 6 callers
Function
fake_pi_init
libpi-fake/pi-test.c:64
↓ 6 callers
Function
fat32_dirent_free
labs/13-fat32/1-code/fat32-helpers.c:124
↓ 6 callers
Function
gpio_read
return the value of <pin>
labs/1-gpio/part1-led/gpio.c:70
↓ 6 callers
Function
gpio_set_function
libpi-fake/fake-gpio.c:50
↓ 6 callers
Function
gpio_set_input
set <pin> to input.
labs/1-gpio/part1-led/gpio.c:65
↓ 6 callers
Function
gpio_set_on
set GPIO <pin> on.
labs/1-gpio/part1-led/gpio.c:51
↓ 6 callers
Function
lex_empty
labs/10-esp8266/libesp/esp-lex-simple.h:16
↓ 6 callers
Function
match_blank_line
if not blank, removes no characters.
labs/10-esp8266/libesp/esp-parse.c:64
↓ 6 callers
Function
match_tok
slightly different semantics: we match prefix (other than blank spaces), but reject if it is a substring of a longer token. for example: "var" would n
labs/9-esp8266/libesp/esp-parse.c:200
↓ 6 callers
Function
read_file
read entire file into buffer. return it. zero pads to a multiple of 4. make sure to cleanup!
labs/2-bootloader/unix-side/libunix/read-file.c:12
↓ 6 callers
Function
rpi_fork
create a new thread.
labs/6-threads/2-threads.new/rpi-thread.c:51
↓ 6 callers
Function
skip_blank_space
labs/9-esp8266/libesp/esp-parse.c:45
↓ 6 callers
Function
timer_get_usec_raw
no dev barrier.
libpi/cs140e-src/timer.c:17
↓ 6 callers
Function
write_exact
labs/11-fuse/2-fake-pi/pi-side/pi-vmm.c:35
↓ 5 callers
Function
at_cmd
labs/10-esp8266/libesp/esp-run.c:244
↓ 5 callers
Function
cq_empty
libpi/libc/circular.h:57
↓ 5 callers
Function
cq_push
non-blocking push.
labs/6-threads/2-threads.new/circular.h:100
↓ 5 callers
Function
enable_cache
libpi/cs140e-src/cache.c:3
↓ 5 callers
Function
error
labs/10-esp8266/examples-unix/client.c:15
↓ 5 callers
Function
error
labs/10-esp8266/examples-unix/server.c:16
↓ 5 callers
Function
esp_has_data_timeout
labs/9-esp8266/libesp/pi-support.c:20
↓ 5 callers
Function
fat32_is_attr
labs/13-fat32/1-code/fat32.h:297
↓ 5 callers
Function
fd_is_open
libunix/is-fd-open.c:6
↓ 5 callers
Function
find_ttyusb
find the TTY-usb device (if any) by using <scandir> to search for a device with a prefix given by <ttyusb_prefixes> in /dev returns: - device name. pa
labs/2-bootloader/unix-side/libunix/find-ttyusb.c:28
↓ 5 callers
Function
get_byte
labs/2-bootloader/unix-side/send-recv.c:12
↓ 5 callers
Function
gpio_int_falling_edge
p98: detect falling edge (1->0). sampled using the system clock. similarly to rising edge detection, it suppresses noise by looking for "100" --- i.e
labs/8-device-interrupts/01-test-gpio-int/gpio-int.c:29
↓ 5 callers
Function
gpio_int_rising_edge
p97 set to detect rising edge (0->1) on <pin>. as the broadcom doc states, it detects by sampling based on the clock. it looks for "011" (low, hi, hi
labs/8-device-interrupts/01-test-gpio-int/gpio-int.c:20
↓ 5 callers
Function
is_eol_ch
labs/9-esp8266/libesp/esp-parse.c:33
↓ 5 callers
Function
lex_dump_str
used for debugging: print what we have. helps figure out what when wrong by comparing to what we expected.
labs/9-esp8266/libesp/esp-lex.c:64
↓ 5 callers
Function
lex_nstream
current number of tokens in stream.
labs/10-esp8266/libesp/esp-lex-simple.h:22
↓ 5 callers
Function
log_ent32_exp
labs/5-replay/code/pretty-print.c:243
↓ 5 callers
Function
log_ent32_exp
labs/5-replay/code/log-util.c:136
↓ 5 callers
Function
log_getc
get a single character.
labs/5-replay/code/pretty-print.c:130
↓ 5 callers
Function
log_is_eol
end of log
labs/5-replay/code/pretty-print.c:126
↓ 5 callers
Function
log_is_eol
end of log
labs/5-replay/code/log-util.c:49
↓ 5 callers
Function
log_read_ent
labs/5-replay/code/pretty-print.c:188
↓ 5 callers
Function
log_readline
labs/5-replay/code/log-util.c:90
next →
1–100 of 1,429, ranked by callers