instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stdlib' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * stdlib function definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_STDLIB_H #define _NOLIBC_STDLIB_H #include "std.h" #include "arch.h" #include "typ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sched' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * sched function definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_SCHED_H #define _NOLIBC_SCHED_H #include "sys.h" #include <linux/sched.h...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Special types used by various syscalls for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_TYPES_H #define _NOLIBC_TYPES_H #include "std.h" #include <linux/mman.h...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stdbool' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Boolean types support for NOLIBC * Copyright (C) 2024 Thomas Weißschuh <linux@weissschuh.net> */ #ifndef _NOLIBC_STDBOOL_H #define _NOLIBC_STDBOOL_H #define bool _Bool #define true 1 #define false 0 #define __bool_true_false_are_defined 1 #endif /* _NOLIBC...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-mips' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * MIPS specific definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_MIPS_H #define _NOLIBC_ARCH_MIPS_H #include "compiler.h" #include "crt.h" #if !defined(_ABIO32) && !defined(_ABIN32) && !defined(_ABI64) #error U...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/compiler' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * NOLIBC compiler support header * Copyright (C) 2023 Thomas Weißschuh <linux@weissschuh.net> */ #ifndef _NOLIBC_COMPILER_H #define _NOLIBC_COMPILER_H #if defined(__has_attribute) # define __nolibc_has_attribute(attr) __has_attribute(attr) #else # define __no...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stdio' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * minimal stdio function definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_STDIO_H #define _NOLIBC_STDIO_H #include "std.h" #include "arch.h" #include...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-loongarch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * LoongArch specific definitions for NOLIBC * Copyright (C) 2023 Loongson Technology Corporation Limited */ #ifndef _NOLIBC_ARCH_LOONGARCH_H #define _NOLIBC_ARCH_LOONGARCH_H #include "compiler.h" #include "crt.h" /* Syscalls for LoongArch : * - stack is 16...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/byteswap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Byte swapping for NOLIBC * Copyright (C) 2026 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_BYTESWAP_H #define _NOLIBC_BYTESWAP_H #include "stdint.h" #include <linux/swab.h> #d...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/string' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * string function definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_STRING_H #define _NOLIBC_STRING_H #include "arch.h" #include "std.h" static void ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-arm64' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * ARM64 specific definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_ARM64_H #define _NOLIBC_ARCH_ARM64_H #include "compiler.h" #include "crt.h" /* Syscalls for ARM64 : * - registers are 64-bit * - stack is ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-riscv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * RISCV (32 and 64) specific definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_RISCV_H #define _NOLIBC_ARCH_RISCV_H #include "compiler.h" #include "crt.h" /* Syscalls for RISCV : * - stack is 16-byte aligned ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/crt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * C Run Time support for NOLIBC * Copyright (C) 2023 Zhangjin Wu <falcon@tinylab.org> */ #ifndef _NOLIBC_CRT_H #define _NOLIBC_CRT_H #ifndef NOLIBC_NO_RUNTIME #include "compiler.h" char **environ __attribute__((weak)); const unsigned long *_auxv __attribute_...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/poll' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * poll definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_POLL_H #define _NOLIBC_POLL_H #include "arch.h" #include "sys.h" #include <linux/poll.h> #in...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-x86' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * x86 specific definitions for NOLIBC (both 32- and 64-bit) * Copyright (C) 2017-2025 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_X86_H #define _NOLIBC_ARCH_X86_H #include "compiler.h" #include "crt.h" #if !defined(__x86_64__) /* Syscalls for i386 : * ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/limits' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Shim limits.h header for NOLIBC. * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ #include "nolibc.h" ```
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stdint' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Standard definitions and types for NOLIBC * Copyright (C) 2023 Vincent Dagonneau <v@vda.io> */ #ifndef _NOLIBC_STDINT_H #define _NOLIBC_STDINT_H typedef unsigned char uint8_t; typedef signed char int8_t; typedef unsigned short uint16_t; ty...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-arm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * ARM specific definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_ARM_H #define _NOLIBC_ARCH_ARM_H #include "compiler.h" #include "crt.h" /* Syscalls for ARM in ARM or Thumb modes : * - registers are 32-bit *...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/nolibc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* nolibc.h * Copyright (C) 2017-2018 Willy Tarreau <w@1wt.eu> */ /* * This file is designed to be used as a libc alternative for minimal programs * with very limited requirements. It consists of a small number of syscall and * type definitions, and the minimal ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/err' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * formatted error message for NOLIBC * Copyright (C) 2026 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_ERR_H #define _NOLIBC_ERR_H #include "errno.h" #include "stdarg.h" #include ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/endian' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Byte order conversion for NOLIBC * Copyright (C) 2026 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_ENDIAN_H #define _NOLIBC_ENDIAN_H #include "stdint.h" #include <asm/byteorder...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-m68k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * m68k specific definitions for NOLIBC * Copyright (C) 2025 Daniel Palmer<daniel@thingy.jp> * * Roughly based on one or more of the other arch files. * */ #ifndef _NOLIBC_ARCH_M68K_H #define _NOLIBC_ARCH_M68K_H #include "compiler.h" #include "crt.h" #defin...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/unistd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * unistd function definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_UNISTD_H #define _NOLIBC_UNISTD_H #include "std.h" #include "arch.h" #include "typ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/math' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * math definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_SYS_MATH_H #define _NOLIBC_SYS_MATH_H static __inline__ double fabs(doub...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/ctype' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * ctype function definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_CTYPE_H #define _NOLIBC_CTYPE_H #include "std.h" /* * As much as possible, please...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-s390' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * s390 specific definitions for NOLIBC */ #ifndef _NOLIBC_ARCH_S390_H #define _NOLIBC_ARCH_S390_H #include "types.h" #include <linux/sched.h> #include <linux/signal.h> #include <linux/unistd.h> #include "compiler.h" #include "crt.h" #include "std.h" /* Sysca...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/ptrace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * ptrace for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> * Copyright (C) 2025 Intel Corporation */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_PTRACE_H #define _NOLIBC_SYS_PTRACE_H #include "../sys.h...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/resource' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Resource definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_RESOURCE_H #define _NOLIBC_SYS_RESOURCE_H #include "../sys.h" #include <linux/res...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/timerfd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * timerfd definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_TIMERFD_H #define _NOLIBC_SYS_TIMERFD_H #include "../sys.h" #i...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/select' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_SELECT_H #define _NOLIBC_SYS_SELECT_H #include <linux/time.h> #include <linux/unistd.h> /* commonly an fd_set represents 256 FDs */ #ifndef FD_SETSIZE #define FD_SETSIZE 256 #endif #define FD_SETIDXMASK (8 * sizeof(u...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/wait' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * wait definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_WAIT_H #define _NOLIBC_SYS_WAIT_H #include "../arch.h" #include "../std.h" #include "....
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/ioctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Ioctl definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_IOCTL_H #define _NOLIBC_SYS_IOCTL_H #include "../sys.h" #include <linux/ioctl.h> /*...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/stat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * stat definition for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_STAT_H #define _NOLIBC_SYS_STAT_H #include "../arch.h" #include "../types.h" #include "...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/prctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Prctl definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_PRCTL_H #define _NOLIBC_SYS_PRCTL_H #include "../sys.h" #include <linux/prctl.h> /*...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/mount' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Mount definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_MOUNT_H #define _NOLIBC_SYS_MOUNT_H #include "../sys.h" #include <linux/mount.h> /*...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/mman' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * mm definition for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_MMAN_H #define _NOLIBC_SYS_MMAN_H #include "../arch.h" #include "../sys.h" #ifndef _sys_...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/time' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * time definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_TIME_H #define _NOLIBC_SYS_TIME_H #include "../arch.h" #include "../sys.h" static int...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/reboot' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Reboot definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_REBOOT_H #define _NOLIBC_SYS_REBOOT_H #include "../sys.h" #include <linux/reboot.h>...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/auxv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * auxv definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_AUXV_H #define _NOLIBC_SYS_AUXV_H #ifndef NOLIBC_NO_RUNTIME #include "../crt.h" stat...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/sysmacros' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Sysmacro definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_SYSMACROS_H #define _NOLIBC_SYS_SYSMACROS_H #include "../std.h" static __inline__...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * sys/types.h shim for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ #include "../types.h" ```
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/uio' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * uio for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> * Copyright (C) 2025 Intel Corporation */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_UIO_H #define _NOLIBC_SYS_UIO_H #include "../sys.h" #includ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/syscall' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * syscall() definition for NOLIBC * Copyright (C) 2024 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_SYSCALL_H #define _NOLIBC_SYS_SYSCALL_H #define ___nolibc_syscall_narg(_...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/random' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * random definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_RANDOM_H #define _NOLIBC_SYS_RANDOM_H #include "../arch.h" #inc...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys/utsname' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Utsname definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "../nolibc.h" #ifndef _NOLIBC_SYS_UTSNAME_H #define _NOLIBC_SYS_UTSNAME_H #include "../sys.h" #include <linux/utsnam...
Linux işletim sistemi çekirdeği için 'tools/include/io_uring/mini_liburing' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: MIT */ #include <linux/io_uring.h> #include <sys/mman.h> #include <sys/syscall.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/uio.h> struct io_sq_ring { unsigned int *head; unsigned int *tail; unsigned int *ring_mask; unsigned int *ring_entries; unsig...
Linux işletim sistemi çekirdeği için 'tools/include/tools/config' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_CONFIG_H #define _TOOLS_CONFIG_H /* Subset of include/linux/kconfig.h */ #define __ARG_PLACEHOLDER_1 0, #define __take_second_arg(__ignored, val, ...) val /* * Helper macros to use CONFIG_ options in C/CPP expressions. Note that * these only work with bool...
Linux işletim sistemi çekirdeği için 'tools/include/tools/le_byteshift' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LE_BYTESHIFT_H #define _TOOLS_LE_BYTESHIFT_H #include <stdint.h> static inline uint16_t __get_unaligned_le16(const uint8_t *p) { return p[0] | p[1] << 8; } static inline uint32_t __get_unaligned_le32(const uint8_t *p) { return p[0] | p[1] << 8 | p[2] << 16...
Linux işletim sistemi çekirdeği için 'tools/include/tools/dis-asm-compat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ #ifndef _TOOLS_DIS_ASM_COMPAT_H #define _TOOLS_DIS_ASM_COMPAT_H #include <stdio.h> #include <dis-asm.h> /* define types for older binutils version, to centralize ifdef'ery a bit */ #ifndef DISASM_INIT_STYLED enum disassembler_style {DISASSEMBLER_STYLE_N...
Linux işletim sistemi çekirdeği için 'tools/include/tools/be_byteshift' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_BE_BYTESHIFT_H #define _TOOLS_BE_BYTESHIFT_H #include <stdint.h> static inline uint16_t __get_unaligned_be16(const uint8_t *p) { return p[0] << 8 | p[1]; } static inline uint32_t __get_unaligned_be32(const uint8_t *p) { return p[0] << 24 | p[1] << 16 | p[2...
Linux işletim sistemi çekirdeği için 'tools/include/tools/libc_compat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: (LGPL-2.0+ OR BSD-2-Clause) /* Copyright (C) 2018 Netronome Systems, Inc. */ #ifndef __TOOLS_LIBC_COMPAT_H #define __TOOLS_LIBC_COMPAT_H #include <stdlib.h> #include <linux/overflow.h> #ifdef COMPAT_NEED_REALLOCARRAY static inline void *reallocarray(void *ptr, size_t nmemb, size_t si...
Linux işletim sistemi çekirdeği için 'tools/include/tools/endian' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_ENDIAN_H #define _TOOLS_ENDIAN_H #include <byteswap.h> #if __BYTE_ORDER == __LITTLE_ENDIAN #ifndef htole16 #define htole16(x) (x) #endif #ifndef htole32 #define htole32(x) (x) #endif #ifndef htole64 #define htole64(x) (x) #endif #ifndef le16toh #define le16...
Linux işletim sistemi çekirdeği için 'tools/include/perf/arm_pmuv3' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2012 ARM Ltd. */ #ifndef __PERF_ARM_PMUV3_H #define __PERF_ARM_PMUV3_H #include <assert.h> #include <asm/bug.h> #define ARMV8_PMU_MAX_COUNTERS 32 #define ARMV8_PMU_COUNTER_MASK (ARMV8_PMU_MAX_COUNTERS - 1) /* * Common architectural and microarchitect...
Linux işletim sistemi çekirdeği için 'tools/include/linux/kasan-tags' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_KASAN_TAGS_H #define _LINUX_KASAN_TAGS_H #define KASAN_TAG_KERNEL 0xFF /* native kernel pointers tag */ #define KASAN_TAG_INVALID 0xFE /* inaccessible memory tag */ #define KASAN_TAG_MAX 0xFD /* maximum value for random tags */ #ifdef CONFIG_KASAN_HW_TAGS #d...
Linux işletim sistemi çekirdeği için 'tools/include/linux/btf_ids' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_BTF_IDS_H #define _LINUX_BTF_IDS_H #include <linux/types.h> /* for u32 */ struct btf_id_set { u32 cnt; u32 ids[]; }; struct btf_id_set8 { u32 cnt; u32 flags; struct { u32 id; u32 flags; } pairs[]; }; #ifdef CONFIG_DEBUG_INFO_BTF #include <linux/...
Linux işletim sistemi çekirdeği için 'tools/include/linux/pci_ids' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * PCI Class, Vendor and Device IDs * * Please keep sorted by numeric Vendor ID and Device ID. * * Do not add new entries to this file unless the definitions * are shared between multiple drivers. */ #ifndef _LINUX_PCI_IDS_H #define _LINUX_PCI_IDS_H /* Device classe...
Linux işletim sistemi çekirdeği için 'tools/include/linux/zalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: LGPL-2.1 #ifndef __TOOLS_LINUX_ZALLOC_H #define __TOOLS_LINUX_ZALLOC_H #include <stddef.h> void *zalloc(size_t size); void __zfree(void **ptr); #define zfree(ptr) __zfree((void **)(ptr)) #endif // __TOOLS_LINUX_ZALLOC_H ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/export' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _TOOLS_LINUX_EXPORT_H_ #define _TOOLS_LINUX_EXPORT_H_ #define EXPORT_SYMBOL(sym) #define EXPORT_SYMBOL_GPL(sym) #endif ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/moduleparam' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_MODULE_PARAMS_H #define _TOOLS_LINUX_MODULE_PARAMS_H #define MODULE_PARM_DESC(parm, desc) #endif // _TOOLS_LINUX_MODULE_PARAMS_H ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/math64' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_MATH64_H #define _LINUX_MATH64_H #include <linux/types.h> #ifdef __x86_64__ static inline u64 mul_u64_u64_div64(u64 a, u64 b, u64 c) { u64 q; asm ("mulq %2; divq %3" : "=a" (q) : "a" (a), "rm" (b), "rm" (c) : "rdx"); return q; } #define mul_u64_u...
Linux işletim sistemi çekirdeği için 'tools/include/linux/overflow' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR MIT */ #ifndef __LINUX_OVERFLOW_H #define __LINUX_OVERFLOW_H #include <linux/compiler.h> /* * We need to compute the minimum and maximum values representable in a given * type. These macros may also be useful elsewhere. It would seem more obvious * to do something like: ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/cfi_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Clang Control Flow Integrity (CFI) type definitions. */ #ifndef _LINUX_CFI_TYPES_H #define _LINUX_CFI_TYPES_H #ifdef __ASSEMBLY__ #include <linux/linkage.h> #ifdef CONFIG_CFI /* * Use the __kcfi_typeid_<function> type identifier symbol to * annotate indirectly call...
Linux işletim sistemi çekirdeği için 'tools/include/linux/jhash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _LINUX_JHASH_H #define _LINUX_JHASH_H /* jhash.h: Jenkins hash support. * * Copyright (C) 2006. Bob Jenkins (bob_jenkins@burtleburtle.net) * * https://burtleburtle.net/bob/hash/ * * These are the credits from Bob's sources: * * lookup3.c, by Bob Jenkins, May 2006, Public Domain. * * These are fu...
Linux işletim sistemi çekirdeği için 'tools/include/linux/args' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_ARGS_H #define _LINUX_ARGS_H /* * How do these macros work? * * In __COUNT_ARGS() _0 to _12 are just placeholders from the start * in order to make sure _n is positioned over the correct number * from 12 to 0 (depending on X, which is a variadic argument...
Linux işletim sistemi çekirdeği için 'tools/include/linux/poison' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_POISON_H #define _LINUX_POISON_H /********** include/linux/list.h **********/ /* * Architectures might want to move the poison pointer offset * into some well-recognized area such as 0xdead000000000000, * that is also not mappable by user-space exploits: ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/gfp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_INCLUDE_LINUX_GFP_H #define _TOOLS_INCLUDE_LINUX_GFP_H #include <linux/types.h> #include <linux/gfp_types.h> /* Helper macro to avoid gfp flags if they are the default one */ #define __default_gfp(a,...) a #define default_gfp(...) __default_gfp(__VA_ARGS__ __...
Linux işletim sistemi çekirdeği için 'tools/include/linux/log2' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Integer base 2 logarithm calculation * * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #ifndef _TOOLS_LINUX_LOG2_H #define _TOOLS_LINUX_LOG2_H #include <linux/bitops.h> #include <linux/types.h> /* ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/seq_file' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _TOOLS_INCLUDE_LINUX_SEQ_FILE_H #define _TOOLS_INCLUDE_LINUX_SEQ_FILE_H struct seq_file; #endif /* _TOOLS_INCLUDE_LINUX_SEQ_FILE_H */ ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/init' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_INIT_H_ #define _TOOLS_LINUX_INIT_H_ #include <linux/compiler.h> #ifndef __init # define __init #endif #ifndef __exit # define __exit #endif #define __section(section) __attribute__((__section__(section))) #define __initconst #define __m...
Linux işletim sistemi çekirdeği için 'tools/include/linux/hashtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Statically sized hash table implementation * (C) 2012 Sasha Levin <levinsasha928@gmail.com> */ #ifndef _LINUX_HASHTABLE_H #define _LINUX_HASHTABLE_H #include <linux/list.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/bitops.h> #include <linux...
Linux işletim sistemi çekirdeği için 'tools/include/linux/bits' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_BITS_H #define __LINUX_BITS_H #include <vdso/bits.h> #include <uapi/linux/bits.h> #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) #define BIT_ULL_MASK(nr) (ULL(1) << ((nr) % BITS_PER_LONG_LONG)) #define BI...
Linux işletim sistemi çekirdeği için 'tools/include/linux/kernel' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __TOOLS_LINUX_KERNEL_H #define __TOOLS_LINUX_KERNEL_H #include <stdarg.h> #include <stddef.h> #include <assert.h> #include <linux/build_bug.h> #include <linux/compiler.h> #include <linux/math.h> #include <linux/panic.h> #include <endian.h> #include <byteswap.h> #incl...
Linux işletim sistemi çekirdeği için 'tools/include/linux/panic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_PANIC_H #define _TOOLS_LINUX_PANIC_H #include <stdarg.h> #include <stdio.h> #include <stdlib.h> static inline void panic(const char *fmt, ...) { va_list argp; va_start(argp, fmt); vfprintf(stderr, fmt, argp); va_end(argp); exit(-1); } #endif ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/bitmap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_BITMAP_H #define _TOOLS_LINUX_BITMAP_H #include <string.h> #include <asm-generic/bitsperlong.h> #include <linux/align.h> #include <linux/bitops.h> #include <linux/find.h> #include <stdlib.h> #include <linux/kernel.h> #define DECLARE_BITMAP(name,bits) \ ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/rwsem' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ #ifndef _TOOLS__RWSEM_H #define _TOOLS__RWSEM_H #include <pthread.h> struct rw_semaphore { pthread_rwlock_t lock; }; static inline int init_rwsem(struct rw_semaphore *sem) { return pthread_rwlock_init(&sem->lock, NULL); } static inline int exit_rwsem(struct rw_semaphor...
Linux işletim sistemi çekirdeği için 'tools/include/linux/coresight-pmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright(C) 2015 Linaro Limited. All rights reserved. * Author: Mathieu Poirier <mathieu.poirier@linaro.org> */ #ifndef _LINUX_CORESIGHT_PMU_H #define _LINUX_CORESIGHT_PMU_H #include <linux/bits.h> #define CORESIGHT_ETM_PMU_NAME "cs_etm" /* * The legacy Trace ID...
Linux işletim sistemi çekirdeği için 'tools/include/linux/hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _LINUX_HASH_H #define _LINUX_HASH_H /* Fast hashing routine for ints, longs and pointers. (C) 2002 Nadia Yvette Chambers, IBM */ #include <asm/types.h> #include <linux/compiler.h> /* * The "GOLDEN_RATIO_PRIME" is used in ifs/btrfs/brtfs_inode.h and * fs/inode.c. It's not actually prime any more (t...
Linux işletim sistemi çekirdeği için 'tools/include/linux/prandom' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __TOOLS_LINUX_PRANDOM_H #define __TOOLS_LINUX_PRANDOM_H #include <linux/types.h> struct rnd_state { __u32 s1, s2, s3, s4; }; /* * Handle minimum values for seeds */ static inline u32 __seed(u32 x, u32 m) { return (x < m) ? x + m : x; } /** * prandom_seed_stat...
Linux işletim sistemi çekirdeği için 'tools/include/linux/debugfs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_DEBUGFS_H #define _TOOLS_DEBUGFS_H #endif ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/interval_tree_generic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Interval Trees (C) 2012 Michel Lespinasse <walken@google.com> include/linux/interval_tree_generic.h */ #include <linux/rbtree_augmented.h> /* * Template for implementing interval trees * * ITSTRUCT: struct type of the interval tree nodes * ITRB: ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/filter' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Linux Socket Filter Data Structures */ #ifndef __TOOLS_LINUX_FILTER_H #define __TOOLS_LINUX_FILTER_H #include <linux/bpf.h> /* ArgX, context and stack frame pointer register positions. Note, * Arg1, Arg2, Arg3, etc are used as argument mappings of function * calls ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/gfp_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_GFP_TYPES_H #define __LINUX_GFP_TYPES_H #include <linux/bits.h> /* The typedef is in types.h but we want the documentation here */ #if 0 /** * typedef gfp_t - Memory allocation flags. * * GFP flags are commonly used throughout Linux to indicate how memory...
Linux işletim sistemi çekirdeği için 'tools/include/linux/unaligned' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_UNALIGNED_H #define __LINUX_UNALIGNED_H /* * This is the most generic implementation of unaligned accesses * and should work almost anywhere. */ #include <vdso/unaligned.h> #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) #define put_un...
Linux işletim sistemi çekirdeği için 'tools/include/linux/stringify' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_STRINGIFY_H #define __LINUX_STRINGIFY_H /* Indirect stringification. Doing two levels allows the parameter to be a * macro itself. For example, compile with -DFOO=bar, __stringify(FOO) * converts to "bar". */ #define __stringify_1(x...) #x #define __str...
Linux işletim sistemi çekirdeği için 'tools/include/linux/pfn' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_PFN_H_ #define _TOOLS_LINUX_PFN_H_ #include <linux/mm.h> #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) #define PHYS_PFN(x) ((unsigned long)((x) >> PAG...
Linux işletim sistemi çekirdeği için 'tools/include/linux/numa' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_NUMA_H #define _LINUX_NUMA_H #ifdef CONFIG_NODES_SHIFT #define NODES_SHIFT CONFIG_NODES_SHIFT #else #define NODES_SHIFT 0 #endif #define MAX_NUMNODES (1 << NODES_SHIFT) #define NUMA_NO_NODE (-1) static inline bool numa_valid_node(int nid) { ret...
Linux işletim sistemi çekirdeği için 'tools/include/linux/atomic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __TOOLS_LINUX_ATOMIC_H #define __TOOLS_LINUX_ATOMIC_H #include <asm/atomic.h> void atomic_long_set(atomic_long_t *v, long i); /* atomic_cmpxchg_relaxed */ #ifndef atomic_cmpxchg_relaxed #define atomic_cmpxchg_relaxed atomic_cmpxchg #define atomic_cmpxchg_release...
Linux işletim sistemi çekirdeği için 'tools/include/linux/compiler_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_COMPILER_TYPES_H #define __LINUX_COMPILER_TYPES_H /* Builtins */ /* * __has_builtin is supported on gcc >= 10, clang >= 3 and icc >= 21. * In the meantime, to support gcc < 10, we implement __has_builtin * by hand. */ #ifndef __has_builtin #define __has_...
Linux işletim sistemi çekirdeği için 'tools/include/linux/container_of' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_CONTAINER_OF_H #define _TOOLS_LINUX_CONTAINER_OF_H #ifndef container_of /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in....
Linux işletim sistemi çekirdeği için 'tools/include/linux/list' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __TOOLS_LINUX_LIST_H #define __TOOLS_LINUX_LIST_H #include <linux/types.h> #include <linux/poison.h> #include <linux/kernel.h> #include <linux/compiler.h> /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are useful when ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/kern_levels' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __KERN_LEVELS_H__ #define __KERN_LEVELS_H__ #define KERN_SOH "" /* ASCII Start Of Header */ #define KERN_SOH_ASCII '' #define KERN_EMERG KERN_SOH "" /* system is unusable */ #define KERN_ALERT KERN_SOH "" /* action must be taken immediately */ #define KERN_CRIT KER...
Linux işletim sistemi çekirdeği için 'tools/include/linux/align' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _TOOLS_LINUX_ALIGN_H #define _TOOLS_LINUX_ALIGN_H #include <uapi/linux/const.h> #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) #endif /* ...
Linux işletim sistemi çekirdeği için 'tools/include/linux/rbtree' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Red Black Trees (C) 1999 Andrea Arcangeli <andrea@suse.de> linux/include/linux/rbtree.h To use rbtrees you'll have to implement your own insert and search cores. This will avoid us to use callbacks and to drop drammatically performances. I know it'...
Linux işletim sistemi çekirdeği için 'tools/include/linux/module' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LIBLOCKDEP_LINUX_MODULE_H_ #define _LIBLOCKDEP_LINUX_MODULE_H_ #define module_param(name, type, perm) static inline bool __is_module_percpu_address(unsigned long addr, unsigned long *can_addr) { return false; } #endif ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/bitops' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_BITOPS_H_ #define _TOOLS_LINUX_BITOPS_H_ #include <asm/types.h> #include <limits.h> #ifndef __WORDSIZE #define __WORDSIZE (__SIZEOF_LONG__ * 8) #endif #ifndef BITS_PER_LONG # define BITS_PER_LONG __WORDSIZE #endif #include <linux/bits.h> #include <linux...
Linux işletim sistemi çekirdeği için 'tools/include/linux/io' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_IO_H #define _TOOLS_IO_H #include <asm/io.h> #endif /* _TOOLS_IO_H */ ```
Linux işletim sistemi çekirdeği için 'tools/include/linux/refcount' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_REFCOUNT_H #define _TOOLS_LINUX_REFCOUNT_H /* * Variant of atomic_t specialized for reference counts. * * The interface matches the atomic_t interface (to aid in porting) but only * provides the few functions one should use for reference counting. *...
Linux işletim sistemi çekirdeği için 'tools/include/linux/mm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_MM_H #define _TOOLS_LINUX_MM_H #include <linux/align.h> #include <linux/mmzone.h> #include <linux/sizes.h> #define PAGE_SHIFT 12 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE - 1)) #define PHYS_ADDR_MAX (~(phys_addr_t)0...
Linux işletim sistemi çekirdeği için 'tools/include/linux/compiler-gcc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_COMPILER_H_ #error "Please do not include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." #endif /* * Common definitions for all gcc versions go here. */ #ifndef GCC_VERSION #define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC...
Linux işletim sistemi çekirdeği için 'tools/include/linux/find' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TOOLS_LINUX_FIND_H_ #define _TOOLS_LINUX_FIND_H_ #ifndef _TOOLS_LINUX_BITMAP_H #error tools: only <linux/bitmap.h> can be included directly #endif #include <linux/bitops.h> unsigned long _find_next_bit(const unsigned long *addr1, unsigned long nbits, unsigned ...