AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
system.h File Reference
#include <core/printk.h>
#include <mm/kvmem.h>
#include <config.h>
#include <core/types.h>

Go to the source code of this file.

Macros

#define _BV(b)
#define MAX(a, b)
#define MIN(a, b)
#define ABS(a)
#define MEMBER_SIZE(type, member)
#define __packed   __attribute__((packed))
#define __aligned(n)
#define __section(s)

Macro Definition Documentation

◆ __aligned

#define __aligned ( n)
Value:
__attribute__((aligned(n)))

Definition at line 31 of file system.h.

◆ __packed

#define __packed   __attribute__((packed))

Definition at line 30 of file system.h.

Referenced by inet_checksum_pseudo().

◆ __section

#define __section ( s)
Value:
__attribute__((section(s)))

Definition at line 32 of file system.h.

◆ _BV

#define _BV ( b)
Value:
(1 << (b))

Definition at line 9 of file system.h.

◆ ABS

#define ABS ( a)
Value:
((a) < 0? -(a) : (a))

Definition at line 12 of file system.h.

◆ MAX

◆ MEMBER_SIZE

#define MEMBER_SIZE ( type,
member )
Value:
(sizeof(((type *)0)->member))

Definition at line 15 of file system.h.

Referenced by bitmap_clear_range(), bitmap_set_range(), and bitmap_size().

◆ MIN

#define MIN ( a,
b )
Value:
((a) < (b) ? (a) : (b))

Definition at line 11 of file system.h.

Referenced by ack_input(), ata_read(), ata_write(), blkcache_read(), buddy_set_unusable(), buddy_setup(), copyinstr(), cpio_load(), csi(), dma_read(), dma_write(), ext2_read(), ext2_write(), fbdev_vesa_write(), fdt_boot(), inet_sockaddr_put(), iobuf_copy(), iobuf_skip(), iobuf_to_ring(), iobuf_zero(), kdev_blk_io(), kdev_bread(), kdev_bwrite(), kmsgdev_read(), kmsgdev_write(), minix_dentry_create(), minix_read(), minix_write(), mm_mark_unusable(), mm_setup(), overlap(), pio_read(), pio_write(), pmap_page_read(), pmap_page_write(), pmap_protect(), pmap_remove(), procfs_buddyinfo(), procfs_cmdline(), procfs_devices(), procfs_filesystems(), procfs_interrupts(), procfs_kvmem(), procfs_meminfo(), procfs_mounts(), procfs_proc_maps(), procfs_proc_status(), procfs_proc_vmstats(), procfs_rdcmdline(), procfs_read(), procfs_uptime(), procfs_version(), random_get(), randomdev_read(), randomdev_write(), rd_read(), rd_write(), rexmt_timeout(), ring_to_iobuf(), ringbuf_discard(), ringbuf_read_iobuf(), ringbuf_read_noconsume(), ringbuf_write_iobuf(), set_mss(), sockaddr_copyout(), sockaddr_room(), socket_inet_setsockopt(), socket_tcp_listen(), socket_tcp_recv(), socket_tcp_send(), socket_unix_listen(), socket_unix_send(), sys_getcwd(), sys_getrandom(), sys_getsockopt(), sys_readlinkat(), sys_setsockopt(), sys_uname(), tcp_established(), tcp_output(), tcp_rcv_window(), tcp_rtt_update(), tmpfs_trunc(), tty_write_iobuf(), uart_receive_handler(), uart_transmit_handler(), vfs_readlink(), vfs_trunc(), vt_kmsg_replay(), and x86_apic_cpus().