Rizin
unix-like reverse engineering framework and cli tools
hardware.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
15 extern void hardware_init(void);
16 
17 
19 extern void hardware_threads_set(uint32_t threadlimit);
20 
22 extern uint32_t hardware_threads_get(void);
23 
24 
30 extern void hardware_memlimit_set(uint64_t new_memlimit,
31  bool set_compress, bool set_decompress, bool is_percentage);
32 
35 
37 extern void hardware_memlimit_show(void) lzma_attribute((__noreturn__));
operation_mode
Definition: coder.h:13
const char int mode
Definition: ioapi.h:137
#define lzma_attribute(attr)
Definition: lzma.h:259
unsigned int uint32_t
Definition: sftypes.h:29
unsigned long uint64_t
Definition: sftypes.h:28
void hardware_memlimit_set(uint64_t new_memlimit, bool set_compress, bool set_decompress, bool is_percentage)
Definition: hardware.c:62
void hardware_memlimit_show(void) lzma_attribute((__noreturn__))
Display the amount of RAM and memory usage limits and exit.
Definition: hardware.c:148
void hardware_init(void)
Definition: hardware.c:169
uint32_t hardware_threads_get(void)
Get the maximum number of worker threads.
Definition: hardware.c:55
void hardware_threads_set(uint32_t threadlimit)
Set the maximum number of worker threads.
Definition: hardware.c:31
uint64_t hardware_memlimit_get(enum operation_mode mode)
Get the current memory usage limit for compression or decompression.
Definition: hardware.c:112