instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'kernel/trace/rv/monitors/pagefault/pagefault' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/rv.h> #include <linux/sched/deadline.h> #include <linux/sched/rt.h> #include <linux/tracepoint.h> #include <rv/instrumentation.h> #define MODULE_NAME "pagefault...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/pagefault/pagefault_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_PAGEFAULT DEFINE_EVENT(event_ltl_monitor_id, event_pagefault, TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next), TP_ARGS(task, states, atoms, next)); DEFINE_EVENT(error_l...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/pagefault/pagefault' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * C implementation of Buchi automaton, automatically generated by * tools/verification/rvgen from the linear temporal logic specification. * For further information, see kernel documentation: * Documentation/trace/rv/linear_temporal_logic.rst */ #include <linux/rv...
Linux kernel'inin 'kernel/trace/rv/monitors/wip/wip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/tracepoint.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/rv.h> #include <rv/instrumentation.h> #define MODULE_NAME "wip" #include <rv_trace.h> #include <trace/events/sched.h> #include <t...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/wip/wip_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_WIP DEFINE_EVENT(event_da_monitor, event_wip, TP_PROTO(char *state, char *event, char *next_state, bool final_state), TP_ARGS(state, event, next_state, final_state)); DEFINE_EVENT(error_da_moni...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/wip/wip' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Automatically generated C representation of wip automaton * For further information about this format, see kernel documentation: * Documentation/trace/rv/deterministic_automata.rst */ #define MONITOR_NAME wip enum states_wip { preemptive_wip, non_preemptive_wip...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/sco/sco' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Automatically generated C representation of sco automaton * For further information about this format, see kernel documentation: * Documentation/trace/rv/deterministic_automata.rst */ #define MONITOR_NAME sco enum states_sco { thread_context_sco, scheduling_con...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/sco/sco_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_SCO DEFINE_EVENT(event_da_monitor, event_sco, TP_PROTO(char *state, char *event, char *next_state, bool final_state), TP_ARGS(state, event, next_state, final_state)); DEFINE_EVENT(error_da_moni...
Linux kernel'inin 'kernel/trace/rv/monitors/sco/sco' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/tracepoint.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/rv.h> #include <rv/instrumentation.h> #define MODULE_NAME "sco" #include <trace/events/sched.h> #include <rv_trace.h> #include <m...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/opid/opid_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_OPID DEFINE_EVENT(event_da_monitor, event_opid, TP_PROTO(char *state, char *event, char *next_state, bool final_state), TP_ARGS(state, event, next_state, final_state)); DEFINE_EVENT(error_da_mo...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/opid/opid' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Automatically generated C representation of opid automaton * For further information about this format, see kernel documentation: * Documentation/trace/rv/deterministic_automata.rst */ #define MONITOR_NAME opid enum states_opid { any_opid, state_max_opid, }; #...
Linux kernel'inin 'kernel/trace/rv/monitors/opid/opid' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/tracepoint.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/rv.h> #include <rv/instrumentation.h> #define MODULE_NAME "opid" #include <trace/events/sched.h> #include <rv_trace.h> #include <...
Linux kernel'inin 'kernel/trace/rv/monitors/sched/sched' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/rv.h> #define MODULE_NAME "sched" #include "sched.h" struct rv_monitor rv_sched = { .name = "sched", .description = "container for several scheduler monitor specifications.", .enabl...
Linux kernel'inin 'kernel/trace/rv/monitors/sleep/sleep' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/tracepoint.h> #include <linux/init.h> #include <linux/irqflags.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/rv.h> #include <linux/sched/deadline.h> #include <linux/sched/rt.h> #include <rv/instrumentation.h> #d...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/sleep/sleep_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_SLEEP DEFINE_EVENT(event_ltl_monitor_id, event_sleep, TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next), TP_ARGS(task, states, atoms, next)); DEFINE_EVENT(error_ltl_monit...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/sleep/sleep' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * C implementation of Buchi automaton, automatically generated by * tools/verification/rvgen from the linear temporal logic specification. * For further information, see kernel documentation: * Documentation/trace/rv/linear_temporal_logic.rst */ #include <linux/rv...
Linux kernel'inin 'kernel/trace/rv/monitors/nrp/nrp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ftrace.h> #include <linux/tracepoint.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/rv.h> #include <rv/instrumentation.h> #define MODULE_NAME "nrp" #include <trace/events/irq.h> #include <trace/events/sched.h> #in...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/nrp/nrp_trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Snippet to be included in rv_trace.h */ #ifdef CONFIG_RV_MON_NRP DEFINE_EVENT(event_da_monitor_id, event_nrp, TP_PROTO(int id, char *state, char *event, char *next_state, bool final_state), TP_ARGS(id, state, event, next_state, final_state)); DEFINE_EVEN...
Linux işletim sistemi çekirdeği için 'kernel/trace/rv/monitors/nrp/nrp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Automatically generated C representation of nrp automaton * For further information about this format, see kernel documentation: * Documentation/trace/rv/deterministic_automata.rst */ #define MONITOR_NAME nrp enum states_nrp { preempt_irq_nrp, any_thread_runnin...
Linux işletim sistemi çekirdeği için 'kernel/time/timer_migration' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _KERNEL_TIME_MIGRATION_H #define _KERNEL_TIME_MIGRATION_H /* Per group capacity. Must be a power of 2! */ #define TMIGR_CHILDREN_PER_GROUP 8 /** * struct tmigr_event - a timer event associated to a CPU * @nextevt: The node to enqueue an event in the parent gr...
Linux kernel'inin 'kernel/time/posix-clock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Support for dynamic clock devices * * Copyright (C) 2010 OMICRON electronics GmbH */ #include <linux/device.h> #include <linux/export.h> #include <linux/file.h> #include <linux/posix-clock.h> #include <linux/slab.h> #include <linux/syscalls.h> #include <linux/uaccess.h...
Linux kernel'inin 'kernel/time/timeconv' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.0+ /* * Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. * This file is part of the GNU C Library. * Contributed by Paul Eggert (eggert@twinsun.com). * * The GNU C Library is free software; you can redistribute it and/or * modify it under the terms ...
Linux kernel'inin 'kernel/time/timekeeping' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Kernel timekeeping code and accessor functions. Based on code from * timer.c, moved in commit 8524070b7982. */ #include <linux/audit.h> #include <linux/clocksource.h> #include <linux/compiler.h> #include <linux/jiffies.h> #include <linux/kobject.h> #include <linux/modu...
Linux kernel'inin 'kernel/time/jiffies' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * This file contains the jiffies based clocksource. * * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) */ #include <linux/clocksource.h> #include <linux/jiffies.h> #include <linux/module.h> #include <linux/init.h> #include "timekeeping.h" #include "tick...
Linux kernel'inin 'kernel/time/test_udelay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * udelay() test kernel module * * Test is executed by writing and reading to /sys/kernel/debug/udelay_test * Tests are configured by writing: USECS ITERATIONS * Tests are executed by reading from the same file. * Specifying usecs of 0 or negative values will run multipl...
Linux işletim sistemi çekirdeği için 'kernel/time/posix-timers' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #define TIMER_RETRY 1 enum posix_timer_state { POSIX_TIMER_DISARMED, POSIX_TIMER_ARMED, POSIX_TIMER_REQUEUE_PENDING, }; struct k_clock { int (*clock_getres)(const clockid_t which_clock, struct timespec64 *tp); int (*clock_set)(const clockid_t which_clock, c...
Linux işletim sistemi çekirdeği için 'kernel/time/ntp_internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_NTP_INTERNAL_H #define _LINUX_NTP_INTERNAL_H extern void ntp_init(void); extern void ntp_clear(unsigned int tkid); /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */ extern u64 ntp_tick_length(unsigned int tkid); extern ktime_t ntp_get_nex...
Linux kernel'inin 'kernel/time/timekeeping_debug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * debugfs file to track time spent in suspend * * Copyright (c) 2011, Google, Inc. */ #include <linux/debugfs.h> #include <linux/err.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/seq_file.h> #include <linux/suspend.h> #include <linux/time.h> #inc...
Linux kernel'inin 'kernel/time/clocksource' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * This file contains the functions which manage clocksource drivers. * * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/clocksource.h> #include <linux/cpu.h> #include <linux/delay.h> #inclu...
Linux kernel'inin 'kernel/time/tick-common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This file contains the base functions to manage periodic tick * related events. * * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner...
Linux kernel'inin 'kernel/time/namespace_vdso' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Author: Andrei Vagin <avagin@openvz.org> * Author: Dmitry Safonov <dima@arista.com> */ #include <linux/cleanup.h> #include <linux/mm.h> #include <linux/time_namespace.h> #include <linux/time.h> #include <linux/vdso_datastore.h> #include <vdso/clocksource.h> #include <v...
Linux kernel'inin 'kernel/time/vsyscall' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2019 ARM Ltd. * * Generic implementation of update_vsyscall and update_vsyscall_tz. * * Based on the x86 specific implementation. */ #include <linux/hrtimer.h> #include <linux/timekeeper_internal.h> #include <vdso/datapage.h> #include <vdso/helpers.h> #incl...
Linux kernel'inin 'kernel/time/timer_migration' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Infrastructure for migratable timers * * Copyright(C) 2022 linutronix GmbH */ #include <linux/cpuhotplug.h> #include <linux/slab.h> #include <linux/smp.h> #include <linux/spinlock.h> #include <linux/timerqueue.h> #include <trace/events/ipi.h> #include <linux/sched/...
Linux kernel'inin 'kernel/time/tick-broadcast-hrtimer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Emulate a local clock event device via a pseudo clock device. */ #include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h> #include <linux/interrupt.h> #include <linux/percpu.h> #include <linux/profile.h> #include <linux/clockchips.h> #include <linux/sched....
Linux kernel'inin 'kernel/time/time_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1+ #include <kunit/test.h> #include <linux/time.h> /* * Traditional implementation of leap year evaluation, but note that long * is a signed type and the tests do cover negative year values. So this * can't use the is_leap_year() helper from rtc.h. */ static bool is_leap(lo...
Linux kernel'inin 'kernel/time/tick-legacy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Timer tick function for architectures that lack generic clockevents, * consolidated here from m68k/ia64/parisc/arm. */ #include <linux/irq.h> #include <linux/profile.h> #include <linux/timekeeper_internal.h> #include "tick-internal.h" /** * legacy_timer_tick() - adva...
Linux kernel'inin 'kernel/time/clocksource-wdtest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Unit test for the clocksource watchdog. * * Copyright (C) 2021 Facebook, Inc. * Copyright (C) 2026 Intel Corp. * * Author: Paul E. McKenney <paulmck@kernel.org> * Author: Thomas Gleixner <tglx@kernel.org> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <li...
Linux kernel'inin 'kernel/time/tick-broadcast' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This file contains functions which emulate a local clock-event * device via a broadcast event source. * * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007, Timesys ...
Linux kernel'inin 'kernel/time/time' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1991, 1992 Linus Torvalds * * This file contains the interface functions for the various time related * system calls: time, stime, gettimeofday, settimeofday, adjtime * * Modification history: * * 1993-09-02 Philip Gladstone * Created file...
Linux kernel'inin 'kernel/time/sched_clock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic sched_clock() support, to extend low level hardware time * counters to full 64-bit ns values. */ #include <linux/clocksource.h> #include <linux/init.h> #include <linux/jiffies.h> #include <linux/ktime.h> #include <linux/kernel.h> #include <linux/math.h> #include ...
Linux kernel'inin 'kernel/time/timer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Kernel internal timers * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better. * * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 * "A Kernel Model for Precisio...
Linux kernel'inin 'kernel/time/itimer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992 Darren Senn */ /* These are all the functions necessary to implement itimers */ #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/syscalls.h> #include <linux/time.h> #include <linux/sched/signal.h> #include <linux/sched/cputime.h> #in...
Linux kernel'inin 'kernel/time/clockevents' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This file contains functions which manage clock event devices. * * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner */ #include <li...
Linux işletim sistemi çekirdeği için 'kernel/time/timekeeping' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _KERNEL_TIME_TIMEKEEPING_H #define _KERNEL_TIME_TIMEKEEPING_H /* * Internal interfaces for kernel/time/ */ extern ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai); bool ...
Linux kernel'inin 'kernel/time/namespace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Author: Andrei Vagin <avagin@openvz.org> * Author: Dmitry Safonov <dima@arista.com> */ #include <linux/time_namespace.h> #include <linux/user_namespace.h> #include <linux/sched/signal.h> #include <linux/sched/task.h> #include <linux/clocksource.h> #include <linux/seq_fi...
Linux kernel'inin 'kernel/time/timer_list' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * List pending timers * * Copyright(C) 2006, Red Hat, Inc., Ingo Molnar */ #include <linux/proc_fs.h> #include <linux/module.h> #include <linux/spinlock.h> #include <linux/sched.h> #include <linux/seq_file.h> #include <linux/kallsyms.h> #include <linux/nmi.h> #include <...
Linux kernel'inin 'kernel/time/posix-stubs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Dummy stubs used when CONFIG_POSIX_TIMERS=n * * Created by: Nicolas Pitre, July 2016 * Copyright: (C) 2016 Linaro Limited */ #include <linux/linkage.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/syscalls.h> #include ...
Linux kernel'inin 'kernel/time/hrtimer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007 Timesys Corp., Thomas Gleixner * * High-resolution kernel timers * * In contrast to the low-resolution timeo...
Linux kernel'inin 'kernel/time/tick-sched' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007 Timesys Corp., Thomas Gleixner * * NOHZ implementation for low and high resolution timers * * Started by: Th...
Linux işletim sistemi çekirdeği için 'kernel/time/tick-internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * tick internal variable and functions used by low/high res code */ #include <linux/hrtimer.h> #include <linux/tick.h> #include "timekeeping.h" #include "tick-sched.h" struct timer_events { u64 local; u64 global; }; #ifdef CONFIG_GENERIC_CLOCKEVENTS # define TICK_D...
Linux kernel'inin 'kernel/time/sleep_timeout' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Kernel internal schedule timeout and sleeping functions */ #include <linux/delay.h> #include <linux/jiffies.h> #include <linux/timer.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> #include "tick-internal.h" /* * Since schedule_timeout()'s timer is ...
Linux kernel'inin 'kernel/time/ntp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * NTP state machine interfaces and logic. * * This code was mainly moved from kernel/timer.c and kernel/time.c * Please see those files for relevant copyright info and historical * changelogs. */ #include <linux/capability.h> #include <linux/clocksource.h> #include <lin...
Linux işletim sistemi çekirdeği için 'kernel/time/tick-sched' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TICK_SCHED_H #define _TICK_SCHED_H #include <linux/hrtimer.h> enum tick_device_mode { TICKDEV_MODE_PERIODIC, TICKDEV_MODE_ONESHOT, }; struct tick_device { struct clock_event_device *evtdev; enum tick_device_mode mode; }; /* The CPU is in the tick idle mode */...
Linux kernel'inin 'kernel/time/tick-oneshot' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This file contains functions which manage high resolution tick * related events. * * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixne...
Linux işletim sistemi çekirdeği için 'kernel/time/namespace_internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TIME_NAMESPACE_INTERNAL_H #define _TIME_NAMESPACE_INTERNAL_H #include <linux/mutex.h> struct time_namespace; /* * Protects possibly multiple offsets writers racing each other * and tasks entering the namespace. */ extern struct mutex timens_offset_lock; #ifdef...
Linux kernel'inin 'kernel/time/posix-timers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * 2002-10-15 Posix Clocks & timers * by George Anzinger george@mvista.com * Copyright (C) 2002 2003 by MontaVista Software. * * 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug. * Copyright (C) 2004 Boris Hu * * Th...
Linux işletim sistemi çekirdeği için 'kernel/time/timekeeping_internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TIMEKEEPING_INTERNAL_H #define _TIMEKEEPING_INTERNAL_H #include <linux/clocksource.h> #include <linux/spinlock.h> #include <linux/time.h> /* * timekeeping debug functions */ #ifdef CONFIG_DEBUG_FS DECLARE_PER_CPU(unsigned long, timekeeping_mg_floor_swaps); stat...
Linux kernel'inin 'kernel/time/timecounter' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Based on clocksource code. See commit 74d23cc704d1 */ #include <linux/export.h> #include <linux/timecounter.h> void timecounter_init(struct timecounter *tc, struct cyclecounter *cc, u64 start_tstamp) { tc->cc = cc; tc->cycle_last = cc->read(cc); tc->n...
Linux kernel'inin 'kernel/time/posix-cpu-timers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Implement CPU time clocks for the POSIX clock interface. */ #include <linux/sched/signal.h> #include <linux/sched/cputime.h> #include <linux/posix-timers.h> #include <linux/errno.h> #include <linux/math64.h> #include <linux/uaccess.h> #include <linux/kernel_stat.h> #incl...
Linux kernel'inin 'kernel/time/alarmtimer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Alarmtimer interface * * This interface provides a timer which is similar to hrtimers, * but triggers a RTC alarm if the box is suspend. * * This interface is influenced by the Android RTC Alarm timer * interface. * * Copyright (C) 2010 IBM Corporation * * Author...
Linux kernel'inin 'kernel/unwind/user' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic interfaces for unwinding user space */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/unwind_user.h> #include <linux/uaccess.h> #define for_each_user_frame(state) \ for (unwind_user_start(state); !(state)->do...
Linux kernel'inin 'kernel/unwind/deferred' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Deferred user space unwinding */ #include <linux/sched/task_stack.h> #include <linux/unwind_deferred.h> #include <linux/sched/clock.h> #include <linux/task_work.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sizes.h> #include <linux/slab.h> #include...
Linux kernel'inin 'kernel/irq/autoprobe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar * * This file contains the interrupt probing code and driver APIs. */ #include <linux/irq.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/delay.h> #include <linux/async.h> #include "in...
Linux kernel'inin 'kernel/irq/generic-chip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Library implementing the most common irq chip callback functions * * Copyright (C) 2011, Thomas Gleixner */ #include <linux/io.h> #include <linux/irq.h> #include <linux/slab.h> #include <linux/export.h> #include <linux/irqdomain.h> #include <linux/interrupt.h> #include ...
Linux kernel'inin 'kernel/irq/pm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. * * This file contains power management functions related to interrupts. */ #include <linux/irq.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/suspend.h> #include <linux/syscore_...
Linux kernel'inin 'kernel/irq/proc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar * * This file contains the /proc/irq/ handling code. */ #include <linux/irq.h> #include <linux/gfp.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #include <linux/interrupt.h> #include <linux/kernel_st...
Linux kernel'inin 'kernel/irq/migration' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/irq.h> #include <linux/interrupt.h> #include "internals.h" /** * irq_fixup_move_pending - Cleanup irq move pending from a dying CPU * @desc: Interrupt descriptor to clean up * @force_clear: If set clear the move pending bit unconditionally. * If not set...
Linux kernel'inin 'kernel/irq/manage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006 Thomas Gleixner * * This file contains driver APIs to the irq subsystem. */ #define pr_fmt(fmt) "genirq: " fmt #include <linux/irq.h> #include <linux/kthread.h> #include <linux/module...
Linux kernel'inin 'kernel/irq/chip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006, Thomas Gleixner, Russell King * * This file contains the core interrupt handling code, for irq-chip based * architectures. Detailed information is available in * Documentation/core-ap...
Linux kernel'inin 'kernel/irq/irqdomain' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "irq: " fmt #include <linux/acpi.h> #include <linux/debugfs.h> #include <linux/hardirq.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/irqdesc.h> #include <linux/irqdomain.h> #include <linux/module.h> #include <linux/mutex.h> #includ...
Linux kernel'inin 'kernel/irq/irqdesc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006, Thomas Gleixner, Russell King * * This file contains the interrupt descriptor management code. Detailed * information is available in Documentation/core-api/genericirq.rst * */ #incl...
Linux kernel'inin 'kernel/irq/irq_sim' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017-2018 Bartosz Golaszewski <brgl@bgdev.pl> * Copyright (C) 2020 Bartosz Golaszewski <bgolaszewski@baylibre.com> */ #include <linux/cleanup.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/irq_sim.h> #include <linux/irq_work.h> #in...
Linux kernel'inin 'kernel/irq/cpuhotplug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic cpu hotunplug interrupt migration code copied from the * arch/arm implementation * * Copyright (C) Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * pub...
Linux kernel'inin 'kernel/irq/ipi-mux' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Multiplex several virtual IPIs over a single HW IPI. * * Copyright The Asahi Linux Contributors * Copyright (c) 2022 Ventana Micro Systems Inc. */ #define pr_fmt(fmt) "ipi-mux: " fmt #include <linux/cpu.h> #include <linux/init.h> #include <linux/irq.h> #inclu...
Linux kernel'inin 'kernel/irq/handle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006, Thomas Gleixner, Russell King * * This file contains the core interrupt handling code. Detailed * information is available in Documentation/core-api/genericirq.rst * */ #include <li...
Linux kernel'inin 'kernel/irq/affinity' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2016 Thomas Gleixner. * Copyright (C) 2016-2017 Christoph Hellwig. */ #include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/cpu.h> #include <linux/group_cpus.h> static void default_calc_sets(struct irq_affinity *aff...
Linux kernel'inin 'kernel/irq/kexec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/irqdesc.h> #include <linux/irqnr.h> #include "internals.h" void machine_kexec_mask_interrupts(void) { struct irq_desc *desc; unsigned int i; for_each_irq_desc(i, desc) { struct irq_chip *chip; int che...
Linux kernel'inin 'kernel/irq/matrix' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2017 Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> #include <linux/spinlock.h> #include <linux/seq_file.h> #include <linux/bitmap.h> #include <linux/percpu.h> #include <linux/cpu.h> #include <linux/irq.h> struct cpumap { unsigned int available; unsigne...
Linux işletim sistemi çekirdeği için 'kernel/irq/internals' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * IRQ subsystem internal functions and variables: * * Do not ever include this file from anything else than * kernel/irq/. Do not even think about using any information outside * of this file for your non core code. */ #include <linux/irqdesc.h> #include <linux/kerne...
Linux kernel'inin 'kernel/irq/irq_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1+ #include <linux/cleanup.h> #include <linux/cpu.h> #include <linux/cpumask.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/irqdesc.h> #include <linux/irqdomain.h> #include <linux/nodemask.h> #include <kunit/test.h> #include "internals.h" static irqretu...
Linux işletim sistemi çekirdeği için 'kernel/irq/settings' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Internal header to deal with irq_desc->status which will be renamed * to irq_desc->settings. */ enum { _IRQ_DEFAULT_INIT_FLAGS = IRQ_DEFAULT_INIT_FLAGS, _IRQ_PER_CPU = IRQ_PER_CPU, _IRQ_LEVEL = IRQ_LEVEL, _IRQ_NOPROBE = IRQ_NOPROBE, _IRQ_NOREQUEST = IRQ_NOREQ...
Linux kernel'inin 'kernel/irq/spurious' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar * * This file contains spurious interrupt handling. */ #include <linux/jiffies.h> #include <linux/irq.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/moduleparam.h> #include <linux/time...
Linux kernel'inin 'kernel/irq/devres' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/interrupt.h> #include <linux/irqdomain.h> #include <linux/device.h> #include <linux/gfp.h> #include <linux/irq.h> #include "internals.h" /* * Device resource management aware IRQ request/free implementation. */ struct irq_devres { u...
Linux kernel'inin 'kernel/irq/msi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2014 Intel Corp. * Author: Jiang Liu <jiang.liu@linux.intel.com> * * This file is licensed under GPLv2. * * This file contains common code to support Message Signaled Interrupts for * PCI compatible and non PCI compatible devices. */ #include <linux/de...
Linux işletim sistemi çekirdeği için 'kernel/irq/debug' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Debugging printout: */ #define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f) #define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f) /* FIXME */ #define ___PD(f) do { } while (0) static inline void print_irq_desc(unsigned int irq, struc...
Linux kernel'inin 'kernel/irq/debugfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // Copyright 2017 Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> #include <linux/irqdomain.h> #include <linux/irq.h> #include <linux/uaccess.h> #include "internals.h" static struct dentry *irq_dir; void irq_debug_show_bits(struct seq_file *m, int ind, unsigned int state,...
Linux kernel'inin 'kernel/irq/resend' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006, Thomas Gleixner * * This file contains the IRQ-resend code * * If the interrupt is waiting to be processed, we try to re-run it. * We can't directly run it from here since the caller...
Linux kernel'inin 'kernel/irq/dummychip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar * Copyright (C) 2005-2006, Thomas Gleixner, Russell King * * This file contains the dummy interrupt chip implementation */ #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/export.h> #include ...
Linux kernel'inin 'kernel/irq/ipi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Imagination Technologies Ltd * Author: Qais Yousef <qais.yousef@imgtec.com> * * This file contains driver APIs to the IPI subsystem. */ #define pr_fmt(fmt) "genirq/ipi: " fmt #include <linux/irqdomain.h> #include <linux/irq.h> /** * irq_reserve_i...
Linux kernel'inin 'kernel/locking/test-ww_mutex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Module-based API test facility for ww_mutexes */ #include <linux/kernel.h> #include <linux/completion.h> #include <linux/delay.h> #include <linux/kthread.h> #include <linux/module.h> #include <linux/prandom.h> #include <linux/slab.h> #include <linux/ww_mutex.h>...
Linux işletim sistemi çekirdeği için 'kernel/locking/lock_events_list' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * 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 Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is...
Linux kernel'inin 'kernel/locking/spinlock_rt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * PREEMPT_RT substitution for spin/rw_locks * * spinlocks and rwlocks on RT are based on rtmutexes, with a few twists to * resemble the non RT semantics: * * - Contrary to plain rtmutexes, spinlocks and rwlocks are state * preserving. The task state is saved bef...
Linux işletim sistemi çekirdeği için 'kernel/locking/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 defines * * This file contains macro definitions and functions shared between different * qspinlock slow path implementations. */ #ifndef __LINUX_QSPINLOCK_H #define __LINUX_QSPINLOCK_H #include <asm-generic/percpu.h> #include <linux/percpu...
Linux işletim sistemi çekirdeği için 'kernel/locking/lockdep_states' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Lockdep states, * * please update XXX_LOCK_USAGE_STATES in include/linux/lockdep.h whenever * you add one, or come up with a nice dynamic solution. */ LOCKDEP_STATE(HARDIRQ) LOCKDEP_STATE(SOFTIRQ) ```
Linux kernel'inin 'kernel/locking/spinlock_debug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright 2005, Red Hat, Inc., Ingo Molnar * Released under the General Public License (GPL). * * This file contains the spinlock/rwlock implementations for * DEBUG_SPINLOCK. */ #include <linux/spinlock.h> #include <linux/nmi.h> #include <linux/interrupt.h> #include <linux/debug_locks.h> #include <linu...
Linux işletim sistemi çekirdeği için 'kernel/locking/lock_events' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * 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 Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is...
Linux kernel'inin 'kernel/locking/qspinlock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Queued spinlock * * (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P. * (C) Copyright 2013-2014,2018 Red Hat, Inc. * (C) Copyright 2015 Intel Corp. * (C) Copyright 2015 Hewlett-Packard Enterprise Development LP * * Authors: Waiman Long <long...
Linux işletim sistemi çekirdeği için 'kernel/locking/lockdep_internals' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * kernel/lockdep_internals.h * * Runtime locking correctness validator * * lockdep subsystem internal functions and variables. */ /* * Lock-class usage-state bits: */ enum lock_usage_bit { #define LOCKDEP_STATE(__STATE) \ LOCK_USED_IN_##__STATE, \ LOCK_USED_IN...
Linux kernel'inin 'kernel/locking/lockdep' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * kernel/lockdep.c * * Runtime locking correctness validator * * Started by Ingo Molnar: * * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra * * this code maps all the lock dependencies ...
Linux kernel'inin 'kernel/locking/ww_rt_mutex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * rtmutex API */ #include <linux/spinlock.h> #include <linux/export.h> #define RT_MUTEX_BUILD_MUTEX #define WW_RT #include "rtmutex.c" int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx) { struct rt_mutex *rtm = &lock->base; if (!ww_ctx) r...