instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6359-auxadc' 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 _DT_BINDINGS_MEDIATEK_MT6359_AUXADC_H #define _DT_BINDINGS_MEDIATEK_MT6359_AUXADC_H /* ADC Channel Index */ #define MT6359_AUXADC_BATADC 0 #define MT6359_AUXADC_BAT_TEMP 1 #define MT6359_AUXADC_CHIP_TEMP 2 #define MT6359_AUXADC_ACCDET 3 #def...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6363-auxadc' 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 _DT_BINDINGS_MEDIATEK_MT6363_AUXADC_H #define _DT_BINDINGS_MEDIATEK_MT6363_AUXADC_H /* ADC Channel Index */ #define MT6363_AUXADC_BATADC 0 #define MT6363_AUXADC_VCDT 1 #define MT6363_AUXADC_BAT_TEMP 2 #define MT6363_AUXADC_CHIP_TEMP 3 #defin...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6358-auxadc' 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 _DT_BINDINGS_MEDIATEK_MT6358_AUXADC_H #define _DT_BINDINGS_MEDIATEK_MT6358_AUXADC_H /* ADC Channel Index */ #define MT6358_AUXADC_BATADC 0 #define MT6358_AUXADC_VCDT 1 #define MT6358_AUXADC_BAT_TEMP 2 #define MT6358_AUXADC_CHIP_TEMP 3 #defin...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6357-auxadc' 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 _DT_BINDINGS_MEDIATEK_MT6357_AUXADC_H #define _DT_BINDINGS_MEDIATEK_MT6357_AUXADC_H /* ADC Channel Index */ #define MT6357_AUXADC_BATADC 0 #define MT6357_AUXADC_ISENSE 1 #define MT6357_AUXADC_VCDT 2 #define MT6357_AUXADC_BAT_TEMP 3 #define M...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6370_adc' 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 __DT_BINDINGS_MEDIATEK_MT6370_ADC_H__ #define __DT_BINDINGS_MEDIATEK_MT6370_ADC_H__ /* ADC Channel Index */ #define MT6370_CHAN_VBUSDIV5 0 #define MT6370_CHAN_VBUSDIV2 1 #define MT6370_CHAN_VSYS 2 #define MT6370_CHAN_VBAT 3 #define MT6370_CHAN_T...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/mediatek,mt6373-auxadc' 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 _DT_BINDINGS_MEDIATEK_MT6373_AUXADC_H #define _DT_BINDINGS_MEDIATEK_MT6373_AUXADC_H /* ADC Channel Index */ #define MT6373_AUXADC_CHIP_TEMP 0 #define MT6373_AUXADC_VCORE_TEMP 1 #define MT6373_AUXADC_VPROC_TEMP 2 #define MT6373_AUXADC_VGPU_TEMP ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/adi,ad4695' 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 _DT_BINDINGS_ADI_AD4695_H #define _DT_BINDINGS_ADI_AD4695_H #define AD4695_COMMON_MODE_REFGND 0xFF #define AD4695_COMMON_MODE_COM 0xFE #define AD4695_TRIGGER_EVENT_BUSY 0 #define AD4695_TRIGGER_EVENT_ALERT 1 #define AD4695_TRIGGER_PIN_GP0 ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/gehc,pmc-adc' 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 _DT_BINDINGS_IIO_ADC_GEHC_PMC_ADC_H #define _DT_BINDINGS_IIO_ADC_GEHC_PMC_ADC_H /* ADC channel type */ #define GEHC_PMC_ADC_VOLTAGE 0 #define GEHC_PMC_ADC_CURRENT 1 #endif ```
Linux işletim sistemi çekirdeği için 'include/dt-bindings/iio/adc/adi,ad7606' 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 _DT_BINDINGS_ADI_AD7606_H #define _DT_BINDINGS_ADI_AD7606_H #define AD7606_TRIGGER_EVENT_BUSY 0 #define AD7606_TRIGGER_EVENT_FRSTDATA 1 #endif /* _DT_BINDINGS_ADI_AD7606_H */ ```
Linux işletim sistemi çekirdeği için 'include/dt-bindings/mips/lantiq_rcu_gphy' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com> * Copyright (C) 2017 Hauke Mehrtens <hauke@hauke-m.de> */ #ifndef _DT_BINDINGS_MIPS_LANTIQ_RCU_GPHY_H #define _DT_BINDINGS_MIPS_LANTIQ_RCU_GPHY_H #define GPHY_MODE_GE 1 #define GPHY...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/i3c/i3c' 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 */ /* * Copyright 2024 NXP */ #ifndef _DT_BINDINGS_I3C_I3C_H #define _DT_BINDINGS_I3C_I3C_H #define I2C_FM (1 << 4) #define I2C_FM_PLUS (0 << 4) #define I2C_FILTER (0 << 5) #define I2C_NO_FILTER_HIGH_FREQUENCY (1 << 5) #define I2C_NO_FILTER_LOW...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/nbpfaxi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013-2014 Renesas Electronics Europe Ltd. * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de> */ #ifndef DT_BINDINGS_NBPFAXI_H #define DT_BINDINGS_NBPFAXI_H /** * Use "#dma-cells = <2>;" with the second integer defining slave DMA flags: */ #...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/jz4780-dma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __DT_BINDINGS_DMA_JZ4780_DMA_H__ #define __DT_BINDINGS_DMA_JZ4780_DMA_H__ /* * Request type numbers for the JZ4780 DMA controller (written to the DRTn * register for the channel). */ #define JZ4780_DMA_I2S1_TX 0x4 #define JZ4780_DMA_I2S1_RX 0x5 #define JZ4780_DMA_I2S0_TX 0x6 #define JZ4780_DMA_I2S0_RX ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/axi-dmac' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This file is free software; you can redistribute it and/or * modify it under the t...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/x1000-dma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * This header provides macros for X1000 DMA bindings. * * Copyright (c) 2019 Zhou Yanjie <zhouyanjie@zoho.com> */ #ifndef __DT_BINDINGS_DMA_X1000_DMA_H__ #define __DT_BINDINGS_DMA_X1000_DMA_H__ /* * Request type numbers for the X1000 DMA controller (written to ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/qcom-gpi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* Copyright (c) 2020, Linaro Ltd. */ #ifndef __DT_BINDINGS_DMA_QCOM_GPI_H__ #define __DT_BINDINGS_DMA_QCOM_GPI_H__ #define QCOM_GPI_SPI 1 #define QCOM_GPI_UART 2 #define QCOM_GPI_I2C 3 #endif /* __DT_BINDINGS_DMA_QCOM_GPI_H__ */ ```
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/sun4i-a10' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Copyright 2014 Maxime Ripard * * Maxime Ripard <maxime.ripard@free-electrons.com> * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/at91' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * This header provides macros for at91 dma bindings. * * Copyright (C) 2013 Ludovic Desroches <ludovic.desroches@atmel.com> */ #ifndef __DT_BINDINGS_AT91_DMA_H__ #define __DT_BINDINGS_AT91_DMA_H__ /* ---------- HDMAC ---------- */ /* * Source and/or destinatio...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/fsl-edma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ #ifndef _FSL_EDMA_DT_BINDING_H_ #define _FSL_EDMA_DT_BINDING_H_ /* Receive Channel */ #define FSL_EDMA_RX 0x1 /* iMX8 audio remote DMA */ #define FSL_EDMA_REMOTE 0x2 /* FIFO is continue memory region */ #define FSL_EDMA_MULTI_FIFO 0x4 /* Channel need st...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/x1830-dma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * This header provides macros for X1830 DMA bindings. * * Copyright (c) 2019 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> */ #ifndef __DT_BINDINGS_DMA_X1830_DMA_H__ #define __DT_BINDINGS_DMA_X1830_DMA_H__ /* * Request type numbers for the X1830 DMA controller ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/xlnx-zynqmp-dpdma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ /* * Copyright 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com> */ #ifndef __DT_BINDINGS_DMA_XLNX_ZYNQMP_DPDMA_H__ #define __DT_BINDINGS_DMA_XLNX_ZYNQMP_DPDMA_H__ #define ZYNQMP_DPDMA_VIDEO0 0 #define ZYNQMP_DPDMA_VIDEO1 1 #define ZYNQMP_DPDMA_VIDEO2 ...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/dma/dw-dmac' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ #ifndef __DT_BINDINGS_DMA_DW_DMAC_H__ #define __DT_BINDINGS_DMA_DW_DMAC_H__ /* * Protection Control bits provide protection against illegal transactions. * The protection bits[0:2] are one-to-one mapped to AHB HPROT[3:1] signals. */ #define DW_DMAC_HPROT1_PRIVIL...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/pwm/raspberrypi,firmware-poe-pwm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2020 Nicolas Saenz Julienne * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> */ #ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H #define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_PWM_H #define RASPBERRYPI_FIRMWARE_PWM_POE 0 #define RASPBERRYPI_FIRMWAR...
Linux işletim sistemi çekirdeği için 'include/dt-bindings/pwm/pwm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * This header provides constants for most PWM bindings. * * Most PWM bindings can include a flags cell as part of the PWM specifier. * In most cases, the format of the flags cell uses the standard values * defined in this header. */ #ifndef _DT_BINDINGS_PWM_PWM_H #d...
Linux işletim sistemi çekirdeği için 'include/asm-generic/thread_info_tif' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_THREAD_INFO_TIF_H_ #define _ASM_GENERIC_THREAD_INFO_TIF_H_ #include <vdso/bits.h> /* Bits 16-31 are reserved for architecture specific purposes */ #define TIF_NOTIFY_RESUME 0 // callback before returning to user #define _TIF_NOTIFY_RESUME BIT(TIF_NOTIF...
Linux işletim sistemi çekirdeği için 'include/asm-generic/emergency-restart' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_EMERGENCY_RESTART_H #define _ASM_GENERIC_EMERGENCY_RESTART_H static inline void machine_emergency_restart(void) { machine_restart(NULL); } #endif /* _ASM_GENERIC_EMERGENCY_RESTART_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/logic_io' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2021 Intel Corporation * Author: johannes@sipsolutions.net */ #ifndef _LOGIC_IO_H #define _LOGIC_IO_H #include <linux/types.h> /* include this file into asm/io.h */ #ifdef CONFIG_INDIRECT_IOMEM #ifdef CONFIG_INDIRECT_IOMEM_FALLBACK /* * If you want e...
Linux işletim sistemi çekirdeği için 'include/asm-generic/qrwlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Queue read/write lock * * These use generic atomic and locking routines, but depend on a fair spinlock * implementation in order to be fair themselves. The implementation in * asm-generic/spinlock.h meets these requirements. * * (C) Copyright 2013-2014 H...
Linux işletim sistemi çekirdeği için 'include/asm-generic/trace_clock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_TRACE_CLOCK_H #define _ASM_GENERIC_TRACE_CLOCK_H /* * Arch-specific trace clocks. */ /* * Additional trace clocks added to the trace_clocks * array in kernel/trace/trace.c * None if the architecture has not defined it. */ #ifndef ARCH_TRACE_CLOCKS ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/hugetlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_HUGETLB_H #define _ASM_GENERIC_HUGETLB_H #include <linux/swap.h> #include <linux/swapops.h> static inline unsigned long huge_pte_write(pte_t pte) { return pte_write(pte); } static inline unsigned long huge_pte_dirty(pte_t pte) { return pte_dirty(pte)...
Linux işletim sistemi çekirdeği için 'include/asm-generic/resource' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_RESOURCE_H #define _ASM_GENERIC_RESOURCE_H #include <uapi/asm-generic/resource.h> /* * boot-time rlimit defaults for the init task: */ #define INIT_RLIMITS \ { \ [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ [RLIMIT_FSIZE] = ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/sections' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_SECTIONS_H_ #define _ASM_GENERIC_SECTIONS_H_ /* References to section boundaries */ #include <linux/compiler.h> #include <linux/types.h> /* * Usage guidelines: * _text, _data: architecture specific, don't use them in arch-independent code * [_stext,...
Linux işletim sistemi çekirdeği için 'include/asm-generic/topology' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * linux/include/asm-generic/topology.h * * Written by: Matthew Dobson, IBM Corporation * * Copyright (C) 2002, IBM Corp. * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/simd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_SIMD_H #define _ASM_GENERIC_SIMD_H #include <linux/compiler_attributes.h> #include <linux/preempt.h> #include <linux/sched.h> #include <linux/types.h> /* * may_use_simd - whether it is allowable at this time to issue SIMD * instructions...
Linux işletim sistemi çekirdeği için 'include/asm-generic/kvm_para' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_KVM_PARA_H #define _ASM_GENERIC_KVM_PARA_H #include <uapi/asm-generic/kvm_para.h> /* * This function is used by architectures that support kvm to avoid issuing * false soft lockup messages. */ static inline bool kvm_check_and_clear_guest_paused(void...
Linux işletim sistemi çekirdeği için 'include/asm-generic/agp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_AGP_H #define _ASM_GENERIC_AGP_H #include <asm/io.h> #define map_page_into_agp(page) do {} while (0) #define unmap_page_from_agp(page) do {} while (0) #define flush_agp_cache() mb() #endif /* _ASM_GENERIC_AGP_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/word-at-a-time' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_WORD_AT_A_TIME_H #define _ASM_WORD_AT_A_TIME_H #include <linux/bitops.h> #include <linux/wordpart.h> #include <asm/byteorder.h> #ifdef __BIG_ENDIAN struct word_at_a_time { const unsigned long high_bits, low_bits; }; #define WORD_AT_A_TIME_CONSTANTS { REPEAT_...
Linux işletim sistemi çekirdeği için 'include/asm-generic/vmlinux.lds' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Helper macros to support writing architecture specific * linker scripts. * * A minimal linker scripts has following content: * [This is a sample, architectures may have special requirements] * * OUTPUT_FORMAT(...) * OUTPUT_ARCH(...) * ENTRY(...) * SECTIONS * { * . = START; * __init_begin = .; * ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/audit_read' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifdef __NR_readlink __NR_readlink, #endif __NR_quotactl, __NR_listxattr, #ifdef __NR_listxattrat __NR_listxattrat, #endif __NR_llistxattr, __NR_flistxattr, __NR_getxattr, #ifdef __NR_getxattrat __NR_getxattrat, #endif __NR_lgetxattr, __NR_fgetxattr, #ifdef __NR_readlinkat __...
Linux işletim sistemi çekirdeği için 'include/asm-generic/dma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_DMA_H #define __ASM_GENERIC_DMA_H /* * This file traditionally describes the i8237 PC style DMA controller. * Most architectures don't have these any more and can get the minimal * implementation from kernel/dma.c by not defining MAX_DMA_CHANNELS. * ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/parport' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_PARPORT_H #define __ASM_GENERIC_PARPORT_H /* * An ISA bus may have i8255 parallel ports at well-known * locations in the I/O space, which are scanned by * parport_pc_find_isa_ports. * * Without ISA support, the driver will only attach * to devices...
Linux işletim sistemi çekirdeği için 'include/asm-generic/qspinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Queued spinlock * * A 'generic' spinlock implementation that is based on MCS locks. For an * architecture that's looking for a 'generic' spinlock, please first consider * ticket-lock.h and only come looking here when you've considered all the * constraints...
Linux işletim sistemi çekirdeği için 'include/asm-generic/signal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SIGNAL_H #define __ASM_GENERIC_SIGNAL_H #include <uapi/asm-generic/signal.h> #ifndef __ASSEMBLY__ #include <asm/sigcontext.h> #undef __HAVE_ARCH_SIG_BITOPS #endif /* __ASSEMBLY__ */ #endif /* _ASM_GENERIC_SIGNAL_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/mmiowb_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_MMIOWB_TYPES_H #define __ASM_GENERIC_MMIOWB_TYPES_H #include <linux/types.h> struct mmiowb_state { u16 nesting_count; u16 mmiowb_pending; }; #endif /* __ASM_GENERIC_MMIOWB_TYPES_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/ioctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_IOCTL_H #define _ASM_GENERIC_IOCTL_H #include <uapi/asm-generic/ioctl.h> #ifdef __CHECKER__ #define _IOC_TYPECHECK(t) (sizeof(t)) #else /* provoke compile error for invalid uses of size argument */ extern unsigned int __invalid_size_argument_for_IOC; #d...
Linux işletim sistemi çekirdeği için 'include/asm-generic/seccomp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * include/asm-generic/seccomp.h * * Copyright (C) 2014 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> */ #ifndef _ASM_GENERIC_SECCOMP_H #define _ASM_GENERIC_SECCOMP_H #include <linux/unistd.h> #if defined(CONFIG_COMPAT) && !defined(__NR_s...
Linux işletim sistemi çekirdeği için 'include/asm-generic/flat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_FLAT_H #define _ASM_GENERIC_FLAT_H #include <linux/uaccess.h> static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags, u32 *addr) { #ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS return copy_from_user(addr, rp, 4) ? -EFAULT : 0;...
Linux işletim sistemi çekirdeği için 'include/asm-generic/qspinlock_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Queued spinlock * * (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P. * * Authors: Waiman Long <waiman.long@hp.com> */ #ifndef __ASM_GENERIC_QSPINLOCK_TYPES_H #define __ASM_GENERIC_QSPINLOCK_TYPES_H #include <linux/types.h> typedef struct...
Linux işletim sistemi çekirdeği için 'include/asm-generic/cacheflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_CACHEFLUSH_H #define _ASM_GENERIC_CACHEFLUSH_H #include <linux/instrumented.h> struct mm_struct; struct vm_area_struct; struct page; struct address_space; /* * The cache doesn't need to be flushed when TLB entries change when * the cache is mapped to...
Linux işletim sistemi çekirdeği için 'include/asm-generic/mmzone' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_MMZONE_H #define _ASM_GENERIC_MMZONE_H #endif ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/int-ll64' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * asm-generic/int-ll64.h * * Integer declarations for architectures which use "long long" * for 64-bit types. */ #ifndef _ASM_GENERIC_INT_LL64_H #define _ASM_GENERIC_INT_LL64_H #include <uapi/asm-generic/int-ll64.h> #ifndef __ASSEMBLY__ typedef __s8 s8; typedef _...
Linux işletim sistemi çekirdeği için 'include/asm-generic/irq_work' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_IRQ_WORK_H #define __ASM_IRQ_WORK_H static inline bool arch_irq_work_has_interrupt(void) { return false; } #endif /* __ASM_IRQ_WORK_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/irqflags' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_IRQFLAGS_H #define __ASM_GENERIC_IRQFLAGS_H /* * All architectures should implement at least the first two functions, * usually inline assembly will be the best way. */ #ifndef ARCH_IRQ_DISABLED #define ARCH_IRQ_DISABLED 0 #define ARCH_IRQ_ENABLED 1 ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/futex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_FUTEX_H #define _ASM_GENERIC_FUTEX_H #include <linux/futex.h> #include <linux/uaccess.h> #include <asm/errno.h> #ifndef futex_atomic_cmpxchg_inatomic #ifndef CONFIG_SMP /* * The following implementation only for uniprocessor machines. * It relies on p...
Linux işletim sistemi çekirdeği için 'include/asm-generic/audit_change_attr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifdef __NR_chmod __NR_chmod, #endif __NR_fchmod, #ifdef __NR_chown __NR_chown, __NR_lchown, #endif #ifdef __NR_fchown __NR_fchown, #endif __NR_setxattr, #ifdef __NR_setxattrat __NR_setxattrat, #endif __NR_lsetxattr, __NR_fsetxattr, __NR_removexattr, #ifdef __NR_removexattrat...
Linux işletim sistemi çekirdeği için 'include/asm-generic/audit_write' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/audit_dir_write.h> __NR_acct, #ifdef __NR_swapon __NR_swapon, #endif __NR_quotactl, #ifdef __NR_truncate __NR_truncate, #endif #ifdef __NR_truncate64 __NR_truncate64, #endif #ifdef __NR_ftruncate __NR_ftruncate, #endif #ifdef __NR_ftruncate64 __NR_ftrunc...
Linux işletim sistemi çekirdeği için 'include/asm-generic/unwind_user' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_UNWIND_USER_H #define _ASM_GENERIC_UNWIND_USER_H #endif /* _ASM_GENERIC_UNWIND_USER_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/serial' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SERIAL_H #define __ASM_GENERIC_SERIAL_H /* * This should not be an architecture specific #define, oh well. * * Traditionally, it just describes i8250 and related serial ports * that have this clock rate. */ #define BASE_BAUD (1843200 / 16) #endif...
Linux işletim sistemi çekirdeği için 'include/asm-generic/device' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Arch specific extensions to struct device */ #ifndef _ASM_GENERIC_DEVICE_H #define _ASM_GENERIC_DEVICE_H struct dev_archdata { }; struct pdev_archdata { }; #endif /* _ASM_GENERIC_DEVICE_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/audit_dir_write' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifdef __NR_rename __NR_rename, #endif #ifdef __NR_mkdir __NR_mkdir, #endif #ifdef __NR_rmdir __NR_rmdir, #endif #ifdef __NR_creat __NR_creat, #endif #ifdef __NR_link __NR_link, #endif #ifdef __NR_unlink __NR_unlink, #endif #ifdef __NR_symlink __NR_symlink, #endif #ifdef __NR...
Linux işletim sistemi çekirdeği için 'include/asm-generic/div64' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_DIV64_H #define _ASM_GENERIC_DIV64_H /* * Copyright (C) 2003 Bernardo Innocenti <bernie@develer.com> * Based on former asm-ppc/div64.h and asm-m68knommu/div64.h * * Optimization for constant divisors on 32-bit machines: * Copyright (C) 2006-2015 Nico...
Linux işletim sistemi çekirdeği için 'include/asm-generic/set_memory' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SET_MEMORY_H #define __ASM_SET_MEMORY_H /* * Functions to change memory attributes. */ int set_memory_ro(unsigned long addr, int numpages); int set_memory_rw(unsigned long addr, int numpages); int set_memory_x(unsigned long addr, int numpages); int set_memory...
Linux işletim sistemi çekirdeği için 'include/asm-generic/vermagic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_GENERIC_VERMAGIC_H #define _ASM_GENERIC_VERMAGIC_H #define MODULE_ARCH_VERMAGIC "" #endif /* _ASM_GENERIC_VERMAGIC_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/user' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __ASM_GENERIC_USER_H #define __ASM_GENERIC_USER_H /* * This file may define a 'struct user' structure. However, it is only * used for a.out files, which are not supported on new architectures. */ #endif /* __ASM_GENERIC_USER_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/softirq_stack' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __ASM_GENERIC_SOFTIRQ_STACK_H #define __ASM_GENERIC_SOFTIRQ_STACK_H #ifdef CONFIG_SOFTIRQ_ON_OWN_STACK void do_softirq_own_stack(void); #else static inline void do_softirq_own_stack(void) { __do_softirq(); } #endif #endif ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/dma-mapping' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_DMA_MAPPING_H #define _ASM_GENERIC_DMA_MAPPING_H static inline const struct dma_map_ops *get_arch_dma_ops(void) { return NULL; } #endif /* _ASM_GENERIC_DMA_MAPPING_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/rqspinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Resilient Queued Spin Lock * * (C) Copyright 2024-2025 Meta Platforms, Inc. and affiliates. * * Authors: Kumar Kartikeya Dwivedi <memxor@gmail.com> */ #ifndef __ASM_GENERIC_RQSPINLOCK_H #define __ASM_GENERIC_RQSPINLOCK_H #include <linux/types.h> #include ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/module.lds' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_GENERIC_MODULE_LDS_H #define __ASM_GENERIC_MODULE_LDS_H /* * <asm/module.lds.h> can specify arch-specific sections for linking modules. * Empty for the asm-generic header. */ #endif /* __ASM_GENERIC_MODULE_LDS_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_IRQ_H #define __ASM_GENERIC_IRQ_H /* * NR_IRQS is the upper bound of how many interrupts can be handled * in the platform. It is used to size the static irq_map array, * so don't make it too big. */ #ifndef NR_IRQS #define NR_IRQS 64 #endif static ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/preempt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_PREEMPT_H #define __ASM_PREEMPT_H #include <linux/thread_info.h> #define PREEMPT_ENABLED (0) static __always_inline int preempt_count(void) { return READ_ONCE(current_thread_info()->preempt_count); } static __always_inline volatile int *preempt_count_ptr(vo...
Linux işletim sistemi çekirdeği için 'include/asm-generic/text-patching' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_GENERIC_TEXT_PATCHING_H #define _ASM_GENERIC_TEXT_PATCHING_H #endif /* _ASM_GENERIC_TEXT_PATCHING_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/tlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* include/asm-generic/tlb.h * * Generic TLB shootdown code * * Copyright 2001 Red Hat, Inc. * Based on code from mm/memory.c Copyright Linus Torvalds and others. * * Copyright 2011 Red Hat, Inc., Peter Zijlstra */ #ifndef _ASM_GENERIC__TLB_H #define _ASM_GEN...
Linux işletim sistemi çekirdeği için 'include/asm-generic/cmpxchg-local' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_CMPXCHG_LOCAL_H #define __ASM_GENERIC_CMPXCHG_LOCAL_H #include <linux/types.h> #include <linux/irqflags.h> extern unsigned long wrong_size_cmpxchg(volatile void *ptr) __noreturn; /* * Generic version of __cmpxchg_local (disables interrupts). Takes a...
Linux işletim sistemi çekirdeği için 'include/asm-generic/pgtable_uffd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _ASM_GENERIC_PGTABLE_UFFD_H #define _ASM_GENERIC_PGTABLE_UFFD_H /* * Some platforms can customize the uffd-wp bit, making it unavailable * even if the architecture provides the resource. * Adding this API allows architectures to add their own checks for the * devices on which the kernel is running. *...
Linux işletim sistemi çekirdeği için 'include/asm-generic/nommu_context' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_NOMMU_H #define __ASM_GENERIC_NOMMU_H /* * Generic hooks for NOMMU architectures, which do not need to do * anything special here. */ #include <asm-generic/mm_hooks.h> static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/param' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_PARAM_H #define __ASM_GENERIC_PARAM_H #include <uapi/asm-generic/param.h> # undef HZ # define HZ CONFIG_HZ /* Internal kernel timer frequency */ # define USER_HZ __USER_HZ /* some user interfaces are */ # define CLOCKS_PER_SEC (USER_HZ) /* in "t...
Linux işletim sistemi çekirdeği için 'include/asm-generic/numa' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_NUMA_H #define __ASM_GENERIC_NUMA_H #ifdef CONFIG_NUMA #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2) int __node_distance(int from, int to); #define node_distance(a, b) __node_distance(a, b) extern nodemask_t numa_nodes_parsed __initdata; extern bool n...
Linux işletim sistemi çekirdeği için 'include/asm-generic/shmparam' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SHMPARAM_H #define __ASM_GENERIC_SHMPARAM_H #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ #endif /* _ASM_GENERIC_SHMPARAM_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_TLBFLUSH_H #define __ASM_GENERIC_TLBFLUSH_H /* * This is a dummy tlbflush implementation that can be used on all * nommu architectures. * If you have an MMU, you need to write your own functions. */ #ifdef CONFIG_MMU #error need to implement an archi...
Linux işletim sistemi çekirdeği için 'include/asm-generic/atomic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Generic C implementation of atomic counter operations. Do not include in * machine independent code. * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #ifndef __ASM_GENERIC_ATOMIC_H #define __ASM_...
Linux işletim sistemi çekirdeği için 'include/asm-generic/msi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_MSI_H #define __ASM_GENERIC_MSI_H #include <linux/types.h> #ifdef CONFIG_GENERIC_MSI_IRQ #ifndef NUM_MSI_ALLOC_SCRATCHPAD_REGS # define NUM_MSI_ALLOC_SCRATCHPAD_REGS 2 #endif struct msi_desc; /** * struct msi_alloc_info - Default structure for MSI ...
Linux işletim sistemi çekirdeği için 'include/asm-generic/mmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_MMU_H #define __ASM_GENERIC_MMU_H /* * This is the mmu.h header for nommu implementations. * Architectures with an MMU need something more complex. */ #ifndef __ASSEMBLY__ typedef struct { unsigned long end_brk; #ifdef CONFIG_BINFMT_ELF_FDPIC uns...
Linux işletim sistemi çekirdeği için 'include/asm-generic/mcs_spinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __ASM_MCS_SPINLOCK_H #define __ASM_MCS_SPINLOCK_H struct mcs_spinlock { struct mcs_spinlock *next; int locked; /* 1 if lock acquired */ int count; /* nesting count, see qspinlock.c */ }; /* * Architectures can define their own: * * arch_mcs_spin_lock_contended(l) * arch_mcs_spin_unlock_conten...
Linux işletim sistemi çekirdeği için 'include/asm-generic/codetag.lds' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_GENERIC_CODETAG_LDS_H #define __ASM_GENERIC_CODETAG_LDS_H #ifdef CONFIG_MEM_ALLOC_PROFILING #define IF_MEM_ALLOC_PROFILING(...) __VA_ARGS__ #else #define IF_MEM_ALLOC_PROFILING(...) #endif #define SECTION_WITH_BOUNDARIES(_name) \ . = ALIGN(8); \ __sta...
Linux işletim sistemi çekirdeği için 'include/asm-generic/module' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_MODULE_H #define __ASM_GENERIC_MODULE_H /* * Many architectures just need a simple module * loader without arch specific data. */ #ifndef CONFIG_HAVE_MOD_ARCH_SPECIFIC struct mod_arch_specific { }; #endif #ifdef CONFIG_64BIT #define Elf_Shdr Elf64_S...
Linux işletim sistemi çekirdeği için 'include/asm-generic/bitops' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_BITOPS_H #define __ASM_GENERIC_BITOPS_H /* * For the benefit of those who are trying to port Linux to another * architecture, here are some C-language equivalents. They should * generate reasonable code, so take a look at what your compiler spits *...
Linux işletim sistemi çekirdeği için 'include/asm-generic/mshyperv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Linux-specific definitions for managing interactions with Microsoft's * Hyper-V hypervisor. The definitions in this file are architecture * independent. See arch/<arch>/include/asm/mshyperv.h for definitions * that are specific to architecture <arch>. * * Definiti...
Linux işletim sistemi çekirdeği için 'include/asm-generic/switch_to' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Generic task switch macro wrapper. * * It should be possible to use these on really simple architectures, * but it serves more as a starting point for new ports. * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@r...
Linux işletim sistemi çekirdeği için 'include/asm-generic/uaccess' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_UACCESS_H #define __ASM_GENERIC_UACCESS_H /* * User space memory access functions, these should work * on any machine that has kernel and user data in the same * address space, e.g. all NOMMU machines. */ #include <linux/string.h> #include <asm-gene...
Linux işletim sistemi çekirdeği için 'include/asm-generic/io' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Generic I/O port emulation. * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #ifndef __ASM_GENERIC_IO_H #define __ASM_GENERIC_IO_H #include <asm/page.h> /* I/O is all done through memory accesses */...
Linux işletim sistemi çekirdeği için 'include/asm-generic/rwonce' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Prevent the compiler from merging or refetching reads or writes. The * compiler is also forbidden from reordering successive instances of * READ_ONCE and WRITE_ONCE, but only when the compiler is aware of some * particular ordering. One way to make the compiler aware...
Linux işletim sistemi çekirdeği için 'include/asm-generic/hw_irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __ASM_GENERIC_HW_IRQ_H #define __ASM_GENERIC_HW_IRQ_H /* * hw_irq.h has internal declarations for the low-level interrupt * controller, like the original i8259A. * In general, this is not needed for new architectures. */ #endif /* __ASM_GENERIC_HW_IRQ_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/exec' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Generic process execution definitions. * * It should be possible to use these on really simple architectures, * but it serves more as a starting point for new ports. * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowel...
Linux işletim sistemi çekirdeği için 'include/asm-generic/fixmap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * fixmap.h: compile-time virtual memory allocation * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1998 Ingo Molnar * * Support of BIGMEM added by Gerhard Wicher...
Linux işletim sistemi çekirdeği için 'include/asm-generic/syscalls' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SYSCALLS_H #define __ASM_GENERIC_SYSCALLS_H #include <linux/compiler.h> #include <linux/linkage.h> /* * Calling conventions for these system calls can differ, so * it's possible to override them. */ #ifndef sys_mmap2 asmlinkage long sys_mmap2(unsig...
Linux işletim sistemi çekirdeği için 'include/asm-generic/qrwlock_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_QRWLOCK_TYPES_H #define __ASM_GENERIC_QRWLOCK_TYPES_H #include <linux/types.h> #include <asm/byteorder.h> #include <asm/spinlock_types.h> /* * The queued read/write lock data structure */ typedef struct qrwlock { union { atomic_t cnts; struct {...
Linux işletim sistemi çekirdeği için 'include/asm-generic/pgtable-nopmd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PGTABLE_NOPMD_H #define _PGTABLE_NOPMD_H #ifndef __ASSEMBLY__ #include <asm-generic/pgtable-nopud.h> struct mm_struct; #define __PAGETABLE_PMD_FOLDED 1 /* * Having the pmd type consist of a pud gets the size right, and allows * us to conceptually access the pu...
Linux işletim sistemi çekirdeği için 'include/asm-generic/barrier' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Generic barrier definitions. * * It should be possible to use these on really simple architectures, * but it serves more as a starting point for new ports. * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redh...
Linux işletim sistemi çekirdeği için 'include/asm-generic/spinlock_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SPINLOCK_TYPES_H #define __ASM_GENERIC_SPINLOCK_TYPES_H #include <asm-generic/qspinlock_types.h> #include <asm-generic/qrwlock_types.h> #endif /* __ASM_GENERIC_SPINLOCK_TYPES_H */ ```
Linux işletim sistemi çekirdeği için 'include/asm-generic/spinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_SPINLOCK_H #define __ASM_GENERIC_SPINLOCK_H #include <asm-generic/ticket_spinlock.h> #include <asm/qrwlock.h> #endif /* __ASM_GENERIC_SPINLOCK_H */ ```