Repository navigation
Agent KB_headers_p3
grisun0 edited this page Oct 23, 2026
·
11 revisions
Previous: KB_headers_p2.md
- Doc: Docstring: allocation tracker for MiniOS, STB leakcheck lineage.
- Layer: utility
- Language: h
- Symbols:
-
lk_block(struct, line 50) -
lk_block_t(type_alias, line 49)typedef struct lk_block lk_block_t; -
lk_malloc(function, line 96)void *lk_malloc(size_t size, const char *file, int line) -
lk_unlink(function, line 110)static void lk_unlink(lk_block_t *b) -
lk_find(function, line 120)static lk_block_t *lk_find(void *ptr) -
lk_free(function, line 130)void lk_free(void *ptr) -
lk_realloc(function, line 143)void *lk_realloc(void *ptr, size_t size, const char *file, int line) -
lk_print(function, line 186)static void lk_print(const char *reason, const lk_block_t *b) -
lk_dumpmem(function, line 197)void lk_dumpmem(void) -
lk_live_count(function, line 206)unsigned long lk_live_count(void) -
lk_live_bytes(function, line 217)unsigned long lk_live_bytes(void) -
kmalloc(function, line 79)extern void *kmalloc(unsigned long size); -
kfree(function, line 80)extern void kfree(void *ptr); -
kprintf(function, line 81)extern int kprintf(const char *fmt, ...); -
MINIOS_LEAKCHECK_H(macro, line 28)#define MINIOS_LEAKCHECK_H -
MINIOS_LK_PIPE(macro, line 42)#define MINIOS_LK_PIPE -
MINIOS_LK_PIPE(macro, line 44)#define MINIOS_LK_PIPE -
MINIOS_LK_RAW_ALLOC(macro, line 82)#define MINIOS_LK_RAW_ALLOC(sz) -
MINIOS_LK_RAW_FREE(macro, line 83)#define MINIOS_LK_RAW_FREE(p) -
MINIOS_LK_RAW_ALLOC(macro, line 88)#define MINIOS_LK_RAW_ALLOC(sz) -
MINIOS_LK_RAW_FREE(macro, line 89)#define MINIOS_LK_RAW_FREE(p) -
malloc(macro, line 235)#define malloc(sz) -
free(macro, line 236)#define free(p) -
realloc(macro, line 237)#define realloc(p, sz)
-
- Depends on:
kernel/string.c - Imported by:
progs/file/file.c,progs/vedit/vedit.c,tests/test_leakcheck.c
- Layer: utility
- Language: h
- Symbols:
-
LZ4_compress_default(function, line 4)int LZ4_compress_default(const char *src, char *dst, int srcSize, int dstCapacity); -
LZ4_compressBound(function, line 5)int LZ4_compressBound(int inputSize); -
LZ4_decompress_safe(function, line 6)int LZ4_decompress_safe(const char *src, char *dst, int compressedSize, int dstCapacity); -
LZ4_KERNEL_H(macro, line 2)#define LZ4_KERNEL_H
-
- Imported by:
fs/minifs.c,kernel/lz4_kernel.c,kernel/mm/swap.c,kernel/syscalls.c
- Doc: Docstring: minifetch.h -- neofetch-style system screen contract.
- Layer: utility
- Language: h
- Symbols:
-
shell_cmd_minifetch(function, line 14)void shell_cmd_minifetch(void); -
MINIFETCH_H(macro, line 12)#define MINIFETCH_H
-
- Imported by:
kernel/minifetch.c,kernel/shell.c
- Doc: MiniFS: a minimal Unix-like filesystem for MiniOS.
- Layer: utility
- Language: h
- Symbols:
-
MiniFSSuper(struct, line 33) -
MiniFSInode(struct, line 52) -
MiniFSDirEntry(struct, line 68) -
MiniFSJournalSuper(struct, line 90) -
MiniFSJournalEntry(struct, line 98) -
MiniFSFile(struct, line 110) -
minifs_compress(function, line 30)unsigned int minifs_compress(const void *src, unsigned int src_len, void *dst, unsigned int dst_cap); -
minifs_decompress(function, line 31)unsigned int minifs_decompress(const void *src, unsigned int src_len, void *dst, unsigned int dst_cap); -
minifs_init(function, line 117)void minifs_init(void); -
minifs_mount(function, line 118)int minifs_mount(void); -
minifs_sync(function, line 119)int minifs_sync(void); -
minifs_is_mounted(function, line 120)int minifs_is_mounted(void); -
minifs_create(function, line 122)int minifs_create(const char *path, unsigned short mode); -
minifs_mkdir(function, line 123)int minifs_mkdir(const char *path, unsigned short mode); -
minifs_unlink(function, line 124)int minifs_unlink(const char *path); -
minifs_rmdir(function, line 125)int minifs_rmdir(const char *path); -
refuses(function, line 128)* An existing file dst refuses (no silent overwrite); -
minifs_rename(function, line 130)int minifs_rename(const char *oldpath, const char *newpath); -
minifs_read(function, line 131)int minifs_read(int inode_num, void *buf, unsigned int offset, unsigned int len); -
minifs_write(function, line 132)int minifs_write(int inode_num, const void *buf, unsigned int offset, unsigned int len); -
minifs_truncate(function, line 133)int minifs_truncate(int inode_num, unsigned int new_size); -
minifs_stat(function, line 134)int minifs_stat(int inode_num, MiniFSInode *out); -
minifs_access(function, line 135)int minifs_access(const char *path); -
minifs_resolve_path(function, line 137)int minifs_resolve_path(const char *path); -
minifs_dir_lookup(function, line 138)int minifs_dir_lookup(int dir_inode, const char *name); -
minifs_dir_add_entry(function, line 139)int minifs_dir_add_entry(int dir_inode, const char *name, int child_inode, unsigned char type); -
minifs_dir_remove_entry(function, line 140)int minifs_dir_remove_entry(int dir_inode, const char *name); -
minifs_dir_read(function, line 141)int minifs_dir_read(int dir_inode, int index, MiniFSDirEntry *out, char *name_out); -
minifs_alloc_block(function, line 143)int minifs_alloc_block(void); -
minifs_free_block(function, line 144)void minifs_free_block(unsigned int block); -
minifs_alloc_inode(function, line 145)int minifs_alloc_inode(void); -
minifs_free_inode(function, line 146)void minifs_free_inode(int inode_num); -
minifs_inode_get_block(function, line 147)int minifs_inode_get_block(MiniFSInode *inode, unsigned int logical_block, unsigned int *phys_block); -
minifs_inode_alloc_block(function, line 148)int minifs_inode_alloc_block(MiniFSInode *inode, unsigned int logical_block); -
minifs_journal_begin(function, line 150)void minifs_journal_begin(unsigned int txn_id); -
minifs_journal_add_block(function, line 151)void minifs_journal_add_block(unsigned int block); -
minifs_journal_touch(function, line 152)void minifs_journal_touch(unsigned int phys); -
minifs_journal_commit(function, line 153)int minifs_journal_commit(unsigned int txn_id); -
minifs_journal_clear(function, line 154)void minifs_journal_clear(void); -
minifs_journal_abort(function, line 155)void minifs_journal_abort(void); -
minifs_journal_recover(function, line 156)void minifs_journal_recover(void); -
minifs_file_open(function, line 158)MiniFSFile *minifs_file_open(int inode_num, int flags); -
minifs_file_close(function, line 159)int minifs_file_close(MiniFSFile *f); -
minifs_get_lba_start(function, line 161)unsigned int minifs_get_lba_start(void); -
minifs_get_total_blocks(function, line 162)unsigned int minifs_get_total_blocks(void); -
minifs_usage(function, line 164)void minifs_usage(unsigned int *free_b, unsigned int *total_b, unsigned int *free_i, unsigned int *total_i); -
MINIFS_H(macro, line 2)#define MINIFS_H -
MINIFS_MAGIC(macro, line 8)#define MINIFS_MAGIC -
MINIFS_VERSION(macro, line 9)#define MINIFS_VERSION -
MINIFS_BLOCK_SIZE(macro, line 10)#define MINIFS_BLOCK_SIZE -
MINIFS_MAX_FILENAME(macro, line 11)#define MINIFS_MAX_FILENAME -
MINIFS_ROOT_INODE(macro, line 12)#define MINIFS_ROOT_INODE -
MINIFS_INODES_PER_BLOCK(macro, line 13)#define MINIFS_INODES_PER_BLOCK -
MINIFS_DIR_ENTRIES_PER_BLOCK(macro, line 14)#define MINIFS_DIR_ENTRIES_PER_BLOCK -
MINIFS_S_IFMT(macro, line 16)#define MINIFS_S_IFMT -
MINIFS_S_IFREG(macro, line 17)#define MINIFS_S_IFREG -
MINIFS_S_IFDIR(macro, line 18)#define MINIFS_S_IFDIR -
MINIFS_S_IFLNK(macro, line 19)#define MINIFS_S_IFLNK -
MINIFS_S_IRWXU(macro, line 20)#define MINIFS_S_IRWXU -
MINIFS_S_IRWXG(macro, line 21)#define MINIFS_S_IRWXG -
MINIFS_S_IRWXO(macro, line 22)#define MINIFS_S_IRWXO -
MINIFS_FT_FILE(macro, line 24)#define MINIFS_FT_FILE -
MINIFS_FT_DIR(macro, line 25)#define MINIFS_FT_DIR -
MINIFS_FT_SYMLINK(macro, line 26)#define MINIFS_FT_SYMLINK -
MINIFS_INODE_COMPRESSED(macro, line 28)#define MINIFS_INODE_COMPRESSED -
MINIFS_DIR_ENTRY_HDR_SIZE(macro, line 75)#define MINIFS_DIR_ENTRY_HDR_SIZE -
MINIFS_JOURNAL_BLOCKS(macro, line 77)#define MINIFS_JOURNAL_BLOCKS -
MINIFS_JOURNAL_MAX_ENTRIES(macro, line 78)#define MINIFS_JOURNAL_MAX_ENTRIES -
MINIFS_JOP_WRITE(macro, line 79)#define MINIFS_JOP_WRITE -
MINIFS_JOP_CREATE(macro, line 80)#define MINIFS_JOP_CREATE -
MINIFS_JOP_DELETE(macro, line 81)#define MINIFS_JOP_DELETE -
MINIFS_JOP_MKDIR(macro, line 82)#define MINIFS_JOP_MKDIR -
MINIFS_JOP_RMDIR(macro, line 83)#define MINIFS_JOP_RMDIR -
MINIFS_JOP_TRUNCATE(macro, line 84)#define MINIFS_JOP_TRUNCATE -
MINIFS_JOP_COMMIT(macro, line 85)#define MINIFS_JOP_COMMIT -
MINIFS_JSTATE_CLEAN(macro, line 87)#define MINIFS_JSTATE_CLEAN -
MINIFS_JSTATE_DIRTY(macro, line 88)#define MINIFS_JSTATE_DIRTY
-
- Imported by:
fs/ext4.c,fs/fat32.c,fs/fsimg.c,fs/kfile.c,fs/minifs.c,fs/vfs.c,kernel.c,kernel/loader.c,kernel/minifetch.c,kernel/mm/paging.c,kernel/shell.c,kernel/spawn.c,kernel/syscalls.c,tests/test_ext4.c,tests/test_fat32.c
- Doc: net_sys_is_socket: net_connect / socket fds are NET_FD_BASE + index for Linux syscalls and *...
- Layer: utility
- Language: h
- Symbols:
-
ring(function, line 58)* ring (below) is the rtl8139's 8 KB hardware ring, unrelated. */ #define NET_SOCK_RX_BUF 16384 #define... -
net_sys_is_socket(function, line 101)int net_sys_is_socket(long fd); -
net_sys_setsockopt(function, line 102)long net_sys_setsockopt(long fd, long level, long name, long val, long len); -
net_sys_getsockopt(function, line 103)long net_sys_getsockopt(long fd, long level, long name, long val, long lenp); -
net_sys_getsockname(function, line 104)long net_sys_getsockname(long fd, long addr, long lenp); -
net_sys_getpeername(function, line 105)long net_sys_getpeername(long fd, long addr, long lenp); -
net_sys_sendmsg(function, line 106)long net_sys_sendmsg(long fd, long msg, long flags); -
net_sys_sendmmsg(function, line 107)long net_sys_sendmmsg(long fd, long vec, long vlen, long flags); -
net_sys_fcntl(function, line 108)long net_sys_fcntl(long fd, long cmd, long arg); -
net_sys_ioctl(function, line 109)long net_sys_ioctl(long fd, long req, long arg); -
net_register_symbols(function, line 110)void net_register_symbols(void); -
net_cmd_status(function, line 113)void net_cmd_status(void); -
net_cmd_ping(function, line 114)void net_cmd_ping(const char *ip_text); -
net_get_addrs(function, line 115)void net_get_addrs(unsigned char mac_out[NET_ETH_ALEN], unsigned char ip_out[4]); -
net_cmd_dns(function, line 116)void net_cmd_dns(const char *host); -
net_open(function, line 119)int net_open(void); -
net_connect(function, line 120)int net_connect(const char *host, unsigned short port); -
net_send(function, line 121)int net_send(int fd, const char *buf, int len); -
net_recv(function, line 122)int net_recv(int fd, char *buf, int len); -
net_recv_timeout(function, line 124)int net_recv_timeout(int fd, char *buf, int len, unsigned long timeout_ms); -
net_close(function, line 125)void net_close(int fd); -
demux(function, line 131)* segment through the production demux (httpd selftest). */ int net_listen(unsigned short port); -
net_accept_nb(function, line 133)int net_accept_nb(int fd); -
net_accept(function, line 134)int net_accept(int fd, unsigned long timeout_ms); -
net_sock_state(function, line 135)int net_sock_state(int fd); -
net_sock_seq(function, line 136)int net_sock_seq(int fd, unsigned *seq_out, unsigned *ack_out); -
net_test_inject_tcp(function, line 137)int net_test_inject_tcp(const unsigned char peer[4], unsigned short pport, unsigned short lport, unsigned char... -
net_sys_socket(function, line 142)long net_sys_socket(long a1, long a2, long a3); -
net_sys_connect(function, line 143)long net_sys_connect(long fd, long sockaddr, long addrlen); -
net_sys_bind(function, line 144)long net_sys_bind(long fd, long sockaddr, long addrlen); -
net_sys_listen(function, line 145)long net_sys_listen(long fd, long backlog); -
net_sys_accept(function, line 146)long net_sys_accept(long fd, long sockaddr, long addrlen); -
net_sys_sendto(function, line 147)long net_sys_sendto(long fd, long buf, long len, long flags, long to, long tolen); -
net_sys_recvfrom(function, line 148)long net_sys_recvfrom(long fd, long buf, long len, long flags, long from, long fromlen); -
net_sys_shutdown(function, line 149)long net_sys_shutdown(long fd, long how); -
net_sys_close(function, line 150)long net_sys_close(long fd); -
net_sys_poll(function, line 151)long net_sys_poll(long fds, long nfds, long timeout_ms); -
net_sys_dns(function, line 152)long net_sys_dns(long host); -
net_time_ms(function, line 155)unsigned long net_time_ms(void); -
net_rx_handle_frame(function, line 159)void net_rx_handle_frame(const unsigned char *frame, unsigned len); -
stack(function, line 162)* the stack (dropped fragments); -
tls_free_fd(function, line 170)void tls_free_fd(int fd); -
net_rx_dropped(variable, line 163)extern unsigned int net_rx_dropped; -
net6_rx_dropped(variable, line 164)extern unsigned int net6_rx_dropped; -
NET_H(macro, line 2)#define NET_H -
NET_IP_ADDR(macro, line 5)#define NET_IP_ADDR -
NET_NETMASK(macro, line 6)#define NET_NETMASK -
NET_GATEWAY(macro, line 7)#define NET_GATEWAY -
NET_DNS(macro, line 8)#define NET_DNS -
NET_POLLIN(macro, line 12)#define NET_POLLIN -
NET_POLLOUT(macro, line 13)#define NET_POLLOUT -
NET_POLLERR(macro, line 14)#define NET_POLLERR -
NET_POLLHUP(macro, line 15)#define NET_POLLHUP -
NET_POLLNVAL(macro, line 16)#define NET_POLLNVAL -
NET_PCI_VENDOR(macro, line 19)#define NET_PCI_VENDOR -
NET_PCI_DEVICE(macro, line 20)#define NET_PCI_DEVICE -
NET_RX_BUF_LEN(macro, line 26)#define NET_RX_BUF_LEN -
NET_RX_ALIGN(macro, line 27)#define NET_RX_ALIGN -
NET_RX_RING_PAD(macro, line 31)#define NET_RX_RING_PAD -
NET_RCR(macro, line 34)#define NET_RCR -
NET_MAX_FRAME(macro, line 35)#define NET_MAX_FRAME -
NET_TX_SLOTS(macro, line 36)#define NET_TX_SLOTS -
NET_ETH_ALEN(macro, line 39)#define NET_ETH_ALEN -
NET_ETHERTYPE_IP(macro, line 40)#define NET_ETHERTYPE_IP -
NET_ETHERTYPE_ARP(macro, line 41)#define NET_ETHERTYPE_ARP -
NET_ETHERTYPE_IPV6(macro, line 42)#define NET_ETHERTYPE_IPV6 -
NET_PROTO_ICMP(macro, line 45)#define NET_PROTO_ICMP -
NET_PROTO_TCP(macro, line 46)#define NET_PROTO_TCP -
NET_PROTO_UDP(macro, line 47)#define NET_PROTO_UDP -
NET_ARP_CACHE(macro, line 50)#define NET_ARP_CACHE -
NET_ARP_REQUEST(macro, line 51)#define NET_ARP_REQUEST -
NET_ARP_REPLY(macro, line 52)#define NET_ARP_REPLY -
NET_TCP_MSS(macro, line 55)#define NET_TCP_MSS -
NET_TCP_WINDOW(macro, line 56)#define NET_TCP_WINDOW -
NET_SOCK_RX_BUF(macro, line 59)#define NET_SOCK_RX_BUF -
NET_RX_RING_SIZE(macro, line 60)#define NET_RX_RING_SIZE -
NET_SOCKETS(macro, line 61)#define NET_SOCKETS -
NET_DNS_PORT(macro, line 62)#define NET_DNS_PORT -
NET_EPHEMERAL_MIN(macro, line 63)#define NET_EPHEMERAL_MIN -
NET_DNS_TRIES(macro, line 64)#define NET_DNS_TRIES -
NET_DNS_TMO_MS(macro, line 65)#define NET_DNS_TMO_MS -
NET_CONNECT_TMO_S(macro, line 66)#define NET_CONNECT_TMO_S -
NET_RETRY_MS(macro, line 67)#define NET_RETRY_MS -
NET_ACCEPT_TMO_MS(macro, line 68)#define NET_ACCEPT_TMO_MS -
NET_TX_MAX(macro, line 69)#define NET_TX_MAX -
NET_FD_BASE(macro, line 72)#define NET_FD_BASE -
NET_UDP_SOCKETS(macro, line 77)#define NET_UDP_SOCKETS -
NET_UDP_QUEUE(macro, line 78)#define NET_UDP_QUEUE -
NET_UDP_DGRAM_MAX(macro, line 79)#define NET_UDP_DGRAM_MAX -
NET_UDP_FD_BASE(macro, line 80)#define NET_UDP_FD_BASE -
NET_UDP_EPHEMERAL_MIN(macro, line 81)#define NET_UDP_EPHEMERAL_MIN -
NET_UDP_EPHEMERAL_MAX(macro, line 82)#define NET_UDP_EPHEMERAL_MAX -
NET_SOCKADDR_IN_LEN(macro, line 83)#define NET_SOCKADDR_IN_LEN -
NET_MSGHDR_LEN(macro, line 85)#define NET_MSGHDR_LEN -
NET_MMSGHDR_LEN(macro, line 86)#define NET_MMSGHDR_LEN -
NET_MSGHDR_NAME_OFF(macro, line 87)#define NET_MSGHDR_NAME_OFF -
NET_MSGHDR_NAMELEN_OFF(macro, line 88)#define NET_MSGHDR_NAMELEN_OFF -
NET_MSGHDR_IOV_OFF(macro, line 89)#define NET_MSGHDR_IOV_OFF -
NET_MSGHDR_IOVLEN_OFF(macro, line 90)#define NET_MSGHDR_IOVLEN_OFF -
NET_MMSGHDR_LEN_OFF(macro, line 91)#define NET_MMSGHDR_LEN_OFF -
NET_IOV_LEN(macro, line 92)#define NET_IOV_LEN -
NET_IOV_MAX(macro, line 93)#define NET_IOV_MAX -
NET_MMSG_MAX(macro, line 94)#define NET_MMSG_MAX
-
- Imported by:
drivers/virtio_net.c,headers/net/rtl8139.h,headers/tls_port.h,kernel.c,kernel/minifetch.c,kernel/shell.c,kernel/syscalls.c,net/net.c,net/rtl8139.c
- Doc: Docstring: panic.h -- Kernel panic backtrace contract (header-only).
- Layer: utility
- Language: h
- Symbols:
-
panic_hex_str(function, line 28)static inline int panic_hex_str(char *buf, int cap, unsigned long v, int digits) -
panic_backtrace(function, line 51)static inline int panic_backtrace(unsigned long rbp, panic_valid_fn valid, unsigned long ... -
PANIC_H(macro, line 15)#define PANIC_H -
PANIC_BT_MAX(macro, line 17)#define PANIC_BT_MAX -
PANIC_HEX_MAX_DIGITS(macro, line 20)#define PANIC_HEX_MAX_DIGITS
-
- Imported by:
kernel/panic.c,tests/test_panic.c
- Doc: Docstring: pcache.h -- page cache for MiniFS, slice 1 (store only).
- Layer: utility
- Language: h
- Symbols:
-
pcache_init(function, line 28)void pcache_init(void); -
pcache_lookup(function, line 32)int pcache_lookup(int ino, unsigned index); -
pcache_get(function, line 42)int pcache_get(int ino, unsigned index, int *is_new); -
pcache_publish(function, line 51)int pcache_publish(int ino, unsigned index, const unsigned char *data); -
pcache_put(function, line 55)void pcache_put(int slot); -
pcache_ref(function, line 61)int pcache_ref(int ino, unsigned index); -
pcache_unmap(function, line 69)void pcache_unmap(int ino, unsigned index); -
match(function, line 75)* a phys match (owned, ref dropped unless already zero), 0 * otherwise. */ int pcache_put_if(int ino, unsigned... -
pcache_ref_if(function, line 83)int pcache_ref_if(int ino, unsigned index, unsigned long phys); -
pcache_owns_phys(function, line 88)int pcache_owns_phys(unsigned long phys); -
pcache_data(function, line 93)unsigned char *pcache_data(int slot); -
pcache_mark_dirty(function, line 98)void pcache_mark_dirty(int slot); -
pcache_invalidate_ino(function, line 102)void pcache_invalidate_ino(int ino); -
pcache_stats(function, line 106)void pcache_stats(unsigned long *pages_out, unsigned long *hits_out, unsigned long *miss_out, unsigned long... -
PCACHE_H(macro, line 17)#define PCACHE_H -
PCACHE_PAGES(macro, line 20)#define PCACHE_PAGES -
PCACHE_PAGE(macro, line 23)#define PCACHE_PAGE
-
- Imported by:
fs/minifs.c,fs/pcache.c,kernel.c,kernel/loader.c,kernel/mm/paging.c,kernel/sched.c,kernel/shell.c,kernel/syscalls.c,tests/test_pcache.c
- Doc: low-latency PCM audio path over SB16 single-cycle DMA.
- Layer: utility
- Language: h
- Symbols:
-
pcm2_counters_t(struct, line 67) -
pcm2_active(function, line 77)int pcm2_active(void); -
pcm2_open(function, line 78)int pcm2_open(unsigned flags, int owner); -
pcm2_write(function, line 79)int pcm2_write(const unsigned char *user, unsigned len, int owner); -
pcm2_close(function, line 80)void pcm2_close(int owner); -
pcm2_irq(function, line 81)void pcm2_irq(void); -
pcm2_poll(function, line 82)void pcm2_poll(void); -
pcm2_counters(function, line 83)void pcm2_counters(pcm2_counters_t *out); -
PCM2_H(macro, line 2)#define PCM2_H -
PCM2_RATE(macro, line 52)#define PCM2_RATE -
PCM2_FRAG(macro, line 53)#define PCM2_FRAG -
PCM2_FRAGS(macro, line 54)#define PCM2_FRAGS -
PCM2_DMA_BYTES(macro, line 55)#define PCM2_DMA_BYTES -
PCM2_RING(macro, line 56)#define PCM2_RING -
PCM2_FLAG_NONBLOCK(macro, line 58)#define PCM2_FLAG_NONBLOCK -
PCM2_ERR_BUSY(macro, line 60)#define PCM2_ERR_BUSY -
PCM2_ERR_NODEV(macro, line 61)#define PCM2_ERR_NODEV -
PCM2_ERR_NOMEM(macro, line 62)#define PCM2_ERR_NOMEM -
PCM2_ERR_PERM(macro, line 63)#define PCM2_ERR_PERM -
PCM2_ERR_PIPE(macro, line 64)#define PCM2_ERR_PIPE -
PCM2_ERR_INVAL(macro, line 65)#define PCM2_ERR_INVAL
-
- Imported by:
drivers/pcm2.c,drivers/sb16.c,kernel/sched.c,kernel/shell.c,kernel/syscalls.c
- Doc: single-producer/single-consumer byte ring for PCM audio.
- Layer: utility
- Language: h
- Symbols:
-
pcm_ring_t(struct, line 26) -
pcm_ring_init(function, line 36)static inline void pcm_ring_init(pcm_ring_t *r, unsigned char *buf, ... -
pcm_ring_used(function, line 47)static inline unsigned pcm_ring_used(const pcm_ring_t *r) -
pcm_ring_free(function, line 51)static inline unsigned pcm_ring_free(const pcm_ring_t *r) -
pcm_ring_write(function, line 55)static inline unsigned pcm_ring_write(pcm_ring_t *r, const unsigned char *src, ... -
pcm_ring_read(function, line 76)static inline unsigned pcm_ring_read(pcm_ring_t *r, unsigned char *dst, ... -
PCM_RING_H(macro, line 2)#define PCM_RING_H
-
- Imported by:
drivers/pcm2.c,tests/test_pcm.c
- Layer: utility
- Language: h
- Symbols:
-
pcspk_init(function, line 8)void pcspk_init(void); -
pcspk_tone(function, line 9)void pcspk_tone(unsigned freq); -
pcspk_off(function, line 10)void pcspk_off(void); -
pcspk_set_volume(function, line 11)void pcspk_set_volume(unsigned volume); -
pcspk_get_volume(function, line 12)unsigned pcspk_get_volume(void); -
PCSPK_H(macro, line 2)#define PCSPK_H -
PCSPK_VOL_MIN(macro, line 4)#define PCSPK_VOL_MIN -
PCSPK_VOL_MAX(macro, line 5)#define PCSPK_VOL_MAX -
PCSPK_VOL_DEFAULT(macro, line 6)#define PCSPK_VOL_DEFAULT
-
- Imported by:
drivers/pcspk.c,kernel/shell.c,kernel/syscalls.c
- Doc: Docstring: percpu_rq.h -- Per-CPU runqueues with work stealing.
- Layer: utility
- Language: h
- Symbols:
-
percpu_rq_t(struct, line 50) -
rq_init(function, line 61)void rq_init(void); -
rq_enqueue(function, line 62)void rq_enqueue(int cpu, int pid); -
rq_pop_local(function, line 63)int rq_pop_local(int cpu); -
rq_steal_once(function, line 64)int rq_steal_once(int self_cpu, int *from_cpu); -
rq_empty(function, line 65)int rq_empty(int cpu); -
rq_should_rescan(function, line 66)int rq_should_rescan(int cpu); -
rq_note_poll(function, line 67)void rq_note_poll(int cpu); -
rq_stats(function, line 68)void rq_stats(int cpu, unsigned long *hits, unsigned long *steals, unsigned long *drops); -
PERCPU_RQ_H(macro, line 2)#define PERCPU_RQ_H -
RQ_DEPTH(macro, line 45)#define RQ_DEPTH -
RQ_RESCAN_PERIOD(macro, line 46)#define RQ_RESCAN_PERIOD -
RQ_VALIDATE_ATTEMPTS(macro, line 47)#define RQ_VALIDATE_ATTEMPTS -
WQ_NONE_HINT(macro, line 48)#define WQ_NONE_HINT
-
- Depends on:
headers/sched.h,headers/spinlock.h - Imported by:
kernel/percpu_rq.c,kernel/sched.c,kernel/shell.c,kernel/syscalls.c,tests/test_percpu_rq.c
- Doc: Docstring: pipe.h -- Kernel pipe ring contract (header-only).
- Layer: utility
- Language: h
- Symbols:
-
pipe_ring_t(struct, line 27) -
pipe_cfg_t(struct, line 37) -
pipe_ring_init(function, line 47)static inline int pipe_ring_init(pipe_ring_t *r, unsigned char *buf, unsigned cap) -
pipe_ring_avail(function, line 64)static inline unsigned pipe_ring_avail(const pipe_ring_t *r) -
pipe_ring_space(function, line 71)static inline unsigned pipe_ring_space(const pipe_ring_t *r) -
pipe_ring_write(function, line 79)static inline unsigned pipe_ring_write(pipe_ring_t *r, const unsigned char *src, unsigned... -
pipe_ring_close_writer(function, line 118)static inline int pipe_ring_close_writer(pipe_ring_t *r) -
pipe_ring_close_reader(function, line 128)static inline int pipe_ring_close_reader(pipe_ring_t *r) -
pipe_ring_ropen(function, line 135)static inline int pipe_ring_ropen(const pipe_ring_t *r) -
pipe_ring_stat(function, line 140)static inline int pipe_ring_stat(const pipe_ring_t *r, pipe_cfg_t *out) -
ends(function, line 4)* * Single source of truth for the pipe byte ring shared by the kernel * pipe ends (fs/kfile.c), the pipe/dup/dup2... -
PIPE_H(macro, line 19)#define PIPE_H -
PIPE_CAP_DEFAULT(macro, line 21)#define PIPE_CAP_DEFAULT -
PIPE_CAP_MAX(macro, line 22)#define PIPE_CAP_MAX -
PIPE_ERR_BOUND(macro, line 24)#define PIPE_ERR_BOUND -
PIPE_EMPTY(macro, line 25)#define PIPE_EMPTY -
PIPE_CFG_DEFAULT(macro, line 43)#define PIPE_CFG_DEFAULT
-
- Imported by:
headers/kernel.h,kernel/console_in.c,tests/test_pipe.c
- Doc: Docstring: proc_sec.h -- per-process security state behind the Linux
- Layer: utility
- Language: h
- Symbols:
-
proc_sec_inherit(function, line 23)void proc_sec_inherit(int child, int parent); -
proc_sec_release(function, line 24)void proc_sec_release(int pid); -
proc_sec_exec(function, line 25)void proc_sec_exec(int pid); -
proc_sec_set_exe(function, line 26)void proc_sec_set_exe(int pid, const char *resolved); -
proc_sec_exe(function, line 28)const char *proc_sec_exe(int pid); -
it(function, line 31)* the syscall must answer in *ret when a filter decided it (ERRNO, TRACE, * USER_NOTIF); -
proc_sec_filter(function, line 34)int proc_sec_filter(long n, long a1, long a2, long a3, long a4, long a5, long a6, long *ret); -
proc_sec_prctl(function, line 36)long proc_sec_prctl(long option, long a2, long a3, long a4, long a5); -
proc_sec_seccomp(function, line 37)long proc_sec_seccomp(long op, long flags, long uargs); -
PROC_SEC_H(macro, line 13)#define PROC_SEC_H -
SECCOMP_FILTERS_MAX(macro, line 16)#define SECCOMP_FILTERS_MAX -
SECCOMP_KILL_EXIT(macro, line 20)#define SECCOMP_KILL_EXIT
-
- Imported by:
kernel/exec.c,kernel/proc_sec.c,kernel/sched.c,kernel/shell.c,kernel/syscalls.c,kernel/syscalls_proc.c
- Layer: utility
- Language: h
- Symbols:
-
qga_init(function, line 48)void qga_init(void); -
qga_poll(function, line 49)void qga_poll(void); -
QGA_H(macro, line 2)#define QGA_H -
QGA_COM2_BASE(macro, line 5)#define QGA_COM2_BASE -
QGA_COM2_IRQ(macro, line 6)#define QGA_COM2_IRQ -
QGA_UART_THR(macro, line 9)#define QGA_UART_THR -
QGA_UART_RBR(macro, line 10)#define QGA_UART_RBR -
QGA_UART_DLL(macro, line 11)#define QGA_UART_DLL -
QGA_UART_DLM(macro, line 12)#define QGA_UART_DLM -
QGA_UART_IER(macro, line 13)#define QGA_UART_IER -
QGA_UART_FCR(macro, line 14)#define QGA_UART_FCR -
QGA_UART_LCR(macro, line 15)#define QGA_UART_LCR -
QGA_UART_LSR(macro, line 16)#define QGA_UART_LSR -
QGA_UART_MCR(macro, line 17)#define QGA_UART_MCR -
QGA_UART_LSR_TX_RDY(macro, line 18)#define QGA_UART_LSR_TX_RDY -
QGA_UART_LSR_RX_RDY(macro, line 19)#define QGA_UART_LSR_RX_RDY -
QGA_UART_LCR_DLAB(macro, line 20)#define QGA_UART_LCR_DLAB -
QGA_UART_LCR_8N1(macro, line 21)#define QGA_UART_LCR_8N1 -
QGA_UART_FCR_CFG(macro, line 22)#define QGA_UART_FCR_CFG -
QGA_UART_MCR_CFG(macro, line 23)#define QGA_UART_MCR_CFG -
QGA_BAUD_DIVISOR(macro, line 25)#define QGA_BAUD_DIVISOR -
QGA_LINE_MAX(macro, line 30)#define QGA_LINE_MAX -
QGA_RESP_MAX(macro, line 31)#define QGA_RESP_MAX -
QGA_FILE_READ_MAX(macro, line 34)#define QGA_FILE_READ_MAX -
QGA_MAX_PAIRS(macro, line 37)#define QGA_MAX_PAIRS -
QGA_KEY_MAX(macro, line 38)#define QGA_KEY_MAX -
QGA_STR_MAX(macro, line 39)#define QGA_STR_MAX -
QGA_MAX_DEPTH(macro, line 42)#define QGA_MAX_DEPTH -
QGA_FILE_MAX(macro, line 46)#define QGA_FILE_MAX
-
- Imported by:
qga.c
- Doc: entropy mixer for getrandom (318).
- Layer: utility
- Language: h
- Symbols:
-
source(function, line 11) `* source (all-zero seed) still walks, because the increment is inside
-
- the mixer, not in the ca...`
-
RANDMIX_H(macro, line 2)#define RANDMIX_H - Imported by:
kernel/syscalls.c,tests/test_randmix.c
- Doc: Docstring: rcu.h -- Read-copy-update, lite epoch edition.
- Layer: utility
- Language: h
- Symbols:
-
retirement(function, line 30)* retirement (the writer keeps ownership) instead of dropping the free. * Callbacks run in tick context with... -
rcu_init(function, line 51)void rcu_init(void); -
rcu_read_lock(function, line 52)void rcu_read_lock(void); -
rcu_read_unlock(function, line 53)void rcu_read_unlock(void); -
rcu_deref(function, line 54)void *rcu_deref(void *volatile *pp); -
rcu_publish(function, line 55)void rcu_publish(void *volatile *pp, void *v); -
rcu_call(function, line 56)long rcu_call(rcu_cb_t fn, void *arg); -
rcu_note_tick(function, line 57)void rcu_note_tick(int cpu); -
rcu_note_idle(function, line 58)void rcu_note_idle(int cpu); -
rcu_poll(function, line 59)void rcu_poll(void); -
rcu_synchronize(function, line 60)long rcu_synchronize(void); -
RCU_H(macro, line 2)#define RCU_H -
RCU_CB_MAX(macro, line 42)#define RCU_CB_MAX -
RCU_SYNC_SPINS(macro, line 43)#define RCU_SYNC_SPINS -
RCU_OK(macro, line 45)#define RCU_OK -
RCU_ERR_FULL(macro, line 46)#define RCU_ERR_FULL -
RCU_ERR_TIMEOUT(macro, line 47)#define RCU_ERR_TIMEOUT
-
- Depends on:
headers/sched.h,headers/spinlock.h - Imported by:
kernel/rcu.c,kernel/sched.c,kernel/syscalls.c,tests/test_rcu.c
- Doc: rtc_days_from_civil: Days since 1970-01-01 for a civil date (Howard Hinnant's algorithm, pure...
- Layer: utility
- Language: h
- Symbols:
-
rtc_days_from_civil(function, line 18)static inline long rtc_days_from_civil(long y, long m, long d) -
rtc_read_tod(function, line 4)int rtc_read_tod(int *hour, int *min, int *sec); -
rtc_read_date(function, line 11)int rtc_read_date(int *year, int *mon, int *day); -
suite(function, line 15)* host suite (tests/test_rtc.c); -
rtc_wall_seconds(function, line 33)int rtc_wall_seconds(unsigned long *out); -
RTC_H(macro, line 2)#define RTC_H
-
- Imported by:
drivers/rtc.c,kernel/minifetch.c,kernel/shell.c,kernel/syscalls.c,qga.c,tests/test_rtc.c
Next: KB_headers_p4.md
Generated offline by readmenator from commit cd87980b5eb5. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_headers_kernel
- community_10_orphans
- community_1_progs_doomgeneric_d_englsh
- community_2_progs_src
- community_3_progs_doomgeneric_p_spec
- community_4_tools_tls_crypto
- community_5_headers_vga_fb
- community_6_progs_doomgeneric_net_defs
- community_7_headers_batch
- community_8_headers_tick
- community_9_tools_doom_pwad
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- KB_asm
- KB_boot
- KB_doomgeneric
- KB_doomgeneric_p10
- KB_doomgeneric_p11
- KB_doomgeneric_p12
- KB_doomgeneric_p2
- KB_doomgeneric_p3
- KB_doomgeneric_p4
- KB_doomgeneric_p5
- KB_doomgeneric_p6
- KB_doomgeneric_p7
- KB_doomgeneric_p8
- KB_doomgeneric_p9
- KB_drivers
- KB_drivers_p2
- KB_file
- KB_freedomui
- KB_fs
- KB_headers
- KB_headers_arch_x86
- KB_headers_drivers
- KB_headers_kernel
- KB_headers_p2
- KB_headers_p3
- KB_headers_p4
- KB_headers_p5
- KB_headers_p6
- KB_kernel
- KB_kernel_p2
- KB_kernel_p3
- KB_kernel_p4
- KB_lib
- KB_lisp
- KB_lua
- KB_mcp
- KB_minios
- KB_misc
- KB_misc_p2
- KB_misc_p3
- KB_mm
- KB_net
- KB_nuklear
- KB_pokemon
- KB_progs
- KB_quake2generic
- KB_root
- KB_src
- KB_src_p2
- KB_src_p3
- KB_tests
- KB_tests_p2
- KB_tls_u
- KB_tools
- KB_tools_p2
- KB_wl
- KB_x86
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p3
- SYMBOLS_p4
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes