Liking cljdoc? Tell your friends :D

clj-ebpf.arch

Architecture detection and platform-specific constants.

Provides runtime detection of CPU architecture and appropriate syscall numbers, libc paths, and other platform-specific values.

Architecture detection and platform-specific constants.

Provides runtime detection of CPU architecture and appropriate
syscall numbers, libc paths, and other platform-specific values.
raw docstring

arch-infoclj

(arch-info)

Returns a map of architecture information for diagnostics

Returns a map of architecture information for diagnostics
sourceraw docstring

arch-nameclj

Human-readable architecture name

Human-readable architecture name
sourceraw docstring

big-endian?clj

True if the current architecture is big-endian

True if the current architecture is big-endian
sourceraw docstring

BPF_SYSCALL_NRclj

source

check-arch-support!clj

(check-arch-support!)

Throws an exception if the current architecture is not supported

Throws an exception if the current architecture is not supported
sourceraw docstring

CLOSE_SYSCALL_NRclj

source

current-archclj

The detected CPU architecture as a keyword. One of: :x86_64, :arm64, :s390x, :ppc64le, :riscv64, or :unknown

The detected CPU architecture as a keyword.
One of: :x86_64, :arm64, :s390x, :ppc64le, :riscv64, or :unknown
sourceraw docstring

EPOLL_CREATE1_SYSCALL_NRclj

source

EPOLL_CTL_SYSCALL_NRclj

source

EPOLL_PWAIT_SYSCALL_NRclj

source

find-libc-pathclj

(find-libc-path)

Find the path to libc.so on the current system.

Returns the first existing libc path for the current architecture, or nil if no libc could be found.

Find the path to libc.so on the current system.

Returns the first existing libc path for the current architecture,
or nil if no libc could be found.
sourceraw docstring

get-arch-configclj

(get-arch-config key)

Get architecture-specific configuration value.

Arguments:

  • key: One of :page-size, :pointer-size, :endianness, :has-bpf-trampoline, :has-kprobe-multi

Returns the value for the current architecture.

Get architecture-specific configuration value.

Arguments:
- key: One of :page-size, :pointer-size, :endianness,
       :has-bpf-trampoline, :has-kprobe-multi

Returns the value for the current architecture.
sourceraw docstring

get-syscall-nrclj

(get-syscall-nr syscall-name)

Get the syscall number for the given syscall on the current architecture.

Arguments:

  • syscall-name: Keyword like :bpf, :perf-event-open, :mmap, etc.

Returns the syscall number, or throws if architecture is unsupported.

Get the syscall number for the given syscall on the current architecture.

Arguments:
- syscall-name: Keyword like :bpf, :perf-event-open, :mmap, etc.

Returns the syscall number, or throws if architecture is unsupported.
sourceraw docstring

IOCTL_SYSCALL_NRclj

source

libc-pathclj

The detected libc.so path for the current system. Memoized for performance.

The detected libc.so path for the current system.
Memoized for performance.
sourceraw docstring

MMAP_SYSCALL_NRclj

source

MUNMAP_SYSCALL_NRclj

source

page-sizeclj

Page size for the current architecture

Page size for the current architecture
sourceraw docstring

PERF_EVENT_OPEN_SYSCALL_NRclj

source

pointer-sizeclj

Pointer size (in bytes) for the current architecture

Pointer size (in bytes) for the current architecture
sourceraw docstring

SOCKET_SYSCALL_NRclj

source

supported-arch?clj

(supported-arch?)

Returns true if the current architecture is fully supported

Returns true if the current architecture is fully supported
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close