instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'scripts/recordmcount' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * recordmcount.c: construct a table of the locations of calls to 'mcount' * so that ftrace can find them quickly. * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. * * Restructured to fit Linux format, as well as other updates: * Copyri...
Linux kernel'inin 'scripts/sign-file' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* Sign a module file using the given key. * * Copyright © 2014-2016 Red Hat, Inc. All Rights Reserved. * Copyright © 2015 Intel Corporation. * Copyright © 2016 Hewlett Packard Enterprise Development LP * * Authors: David Howells <dhowells@redhat.com> * David Woodhouse <dwmw2@infradead.or...
Linux kernel'inin 'scripts/module-common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> /* * Include build-salt.h after module.h in order to * inherit the definitions. */ #define INCLUDE_VERMAGIC #include <linux/build-salt.h> #include <linux/elfnote-lto.h> #include <linux/vermagic.h> #ifdef CONFIG_UNWINDER_ORC #include <asm/orc_header...
Linux kernel'inde 'scripts/module.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* * Common module linker script, always used when linking a module. * Archs are free to supply their own linker scripts. ld will * combine them automatically. */ #ifdef CONFIG_UNWIND_TABLES #define DISCARD_EH_FRAME #else #define DISCARD_EH_FRAME *(.eh_frame) #endif #include <asm-generic/codetag.lds.h...
Linux işletim sistemi çekirdeği için 'scripts/ssl-common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1+ */ /* * SSL helper functions shared by sign-file and extract-cert. */ static void drain_openssl_errors(int l, int silent) { const char *file; char buf[120]; int e, line; if (ERR_peek_error() == 0) return; if (!silent) fprintf(stderr, "At main.c:%d:\n", l); while...
Linux kernel'inin 'scripts/elf-parse' alt sistemi için gerekli C kaynak kodunu implemente et.
```c #include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include <errno.h> #include "elf-parse.h" struct elf_funcs elf_parser; /* * Get the whole file as a programming convenience i...
Linux kernel'inin 'scripts/asn1_compiler' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Simplified ASN.1 notation parser * * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h>...
Linux kernel'inin 'scripts/gen_packed_field_checks' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // Copyright (c) 2024, Intel Corporation #include <stdbool.h> #include <stdio.h> #define MAX_PACKED_FIELD_SIZE 50 int main(int argc, char **argv) { /* The first macro doesn't need a 'do {} while(0)' loop */ printf("#define CHECK_PACKED_FIELDS_1(fields) \\\n"); printf("\tCHE...
Linux kernel'inin 'scripts/kallsyms' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* Generate assembler source containing symbol information * * Copyright 2002 by Kai Germaschewski * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. * * Usage: kallsyms [--all-symbols] in.map > out.S * * T...
Linux kernel'inin 'scripts/tracepoint-update' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <sys/types.h> #include <sys/stat.h> #include <getopt.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <pthread.h> #include "elf-parse.h" static Elf_Shdr *check_d...
Linux işletim sistemi çekirdeği için 'scripts/elf-parse' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _SCRIPTS_ELF_PARSE_H #define _SCRIPTS_ELF_PARSE_H #include <elf.h> #include <tools/be_byteshift.h> #include <tools/le_byteshift.h> typedef union { Elf32_Ehdr e32; Elf64_Ehdr e64; } Elf_Ehdr; typedef union { Elf32_Shdr e32; Elf64_Shdr e64; } Elf_Shdr; typ...
Linux kernel'inin 'scripts/sorttable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * sorttable.c: Sort the kernel's table * * Added ORC unwind tables sort support and other updates: * Copyright (C) 1999-2019 Alibaba Group Holding Limited. by: * Shile Zhang <shile.zhang@linux.alibaba.com> * * Copyright 2011 - 2012 Cavium, Inc. * * Based on code...
Linux kernel'inin 'scripts/unifdef' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2002 - 2011 Tony Finch <dot@dotat.at> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
Linux kernel'inin 'scripts/insert-sys-cert' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* Write the contents of the <certfile> into kernel symbol system_extra_cert * * Copyright (C) IBM Corporation, 2015 * * Author: Mehmet Kayaalp <mkayaalp@linux.vnet.ibm.com> * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by refer...
Linux işletim sistemi çekirdeği için 'scripts/recordmcount' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * recordmcount.h * * This code was taken out of recordmcount.c written by * Copyright 2009 John F. Reiser <jreiser@BitWagon.com>. All rights reserved. * * The original code had the same algorithms for both 32bit * and 64bit ELF files, but the code was duplicat...
Linux kernel'inin 'scripts/basic/fixdep' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * "Optimize" a list of dependencies as spit out by gcc -MD * for the kernel build * =========================================================================== * * Author Kai Germaschewski * Copyright 2002 by Kai Germaschewski <kai.germaschewski@gmx.de> * * This software may be used and distri...
Linux işletim sistemi çekirdeği için 'scripts/include/hashtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef HASHTABLE_H #define HASHTABLE_H #include "array_size.h" #include "list.h" #define HASH_SIZE(name) (ARRAY_SIZE(name)) #define HASHTABLE_DECLARE(name, size) struct hlist_head name[size] #define HASHTABLE_DEFINE(name, size) \ HASHTABLE_DECLARE(name, size)...
Linux işletim sistemi çekirdeği için 'scripts/include/xalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef XALLOC_H #define XALLOC_H #include <stdlib.h> #include <string.h> static inline void *xmalloc(size_t size) { void *p = malloc(size); if (!p) exit(1); return p; } static inline void *xcalloc(size_t nmemb, size_t size) { void *p = calloc(nmemb, size); ...
Linux işletim sistemi çekirdeği için 'scripts/include/hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef HASH_H #define HASH_H static inline unsigned int hash_str(const char *s) { /* fnv32 hash */ unsigned int hash = 2166136261U; for (; *s; s++) hash = (hash ^ *s) * 0x01000193; return hash; } /* simplified version of functions from include/linux/hash.h */ #...
Linux işletim sistemi çekirdeği için 'scripts/include/array_size' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef ARRAY_SIZE_H #define ARRAY_SIZE_H /** * ARRAY_SIZE - get the number of elements in array @arr * @arr: array to be sized */ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #endif /* ARRAY_SIZE_H */ ```
Linux işletim sistemi çekirdeği için 'scripts/include/list_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef LIST_TYPES_H #define LIST_TYPES_H struct list_head { struct list_head *next, *prev; }; struct hlist_head { struct hlist_node *first; }; struct hlist_node { struct hlist_node *next, **pprev; }; #endif /* LIST_TYPES_H */ ```
Linux işletim sistemi çekirdeği için 'scripts/include/list' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef LIST_H #define LIST_H #include <stddef.h> #include "list_types.h" /* Are two types/vars the same type (ignoring qualifiers)? */ #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) /** * container_of - cast a member of a structure out to t...
Linux kernel'inin 'scripts/dtc/fstree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include "dtc.h" #include <dirent.h> #include <sys/stat.h> static struct node *read_fstree(const char *dirname) { DIR *d; struct dirent *de; struct stat st; struct node *tree; d = o...
Linux kernel'inin 'scripts/dtc/checks' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2007. */ #include "dtc.h" #include "srcpos.h" #ifdef TRACE_CHECKS #define TRACE(c, ...) \ do { \ fprintf(stderr, "=== %s: ", (c)->name); \ fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, "\n...
Linux kernel'inin 'scripts/dtc/fdtput' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. */ #include <assert.h> #include <ctype.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libfdt.h> #include "util.h" /* These are the operations we supp...
Linux kernel'inin 'scripts/dtc/dtc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include <sys/stat.h> #include "dtc.h" #include "srcpos.h" /* * Command line options */ int quiet; /* Level of quietness */ unsigned int reservenum;/* Number of memory reservation slot...
Linux kernel'inin 'scripts/dtc/data' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include "dtc.h" void data_free(struct data d) { struct marker *m, *nm; m = d.markers; while (m) { nm = m->next; free(m->ref); free(m); m = nm; } if (d.val) free(d.val); }...
Linux işletim sistemi çekirdeği için 'scripts/dtc/util' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef UTIL_H #define UTIL_H #include <stdlib.h> #include <stdarg.h> #include <stdbool.h> #include <getopt.h> /* * Copyright 2011 The Chromium Authors, All Rights Reserved. * Copyright 2008 Jon Loeliger, Freescale Semiconductor, Inc. */ #ifdef __GNUC__ #ifdef ...
Linux işletim sistemi çekirdeği için 'scripts/dtc/dtc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef DTC_H #define DTC_H /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <stdarg.h> #include <assert.h> #include <ctype.h...
Linux kernel'inin 'scripts/dtc/fdtget' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * * Portions from U-Boot cmd_fdt.c (C) Copyright 2007 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com * Based on code written by: * Pantelis Antoniou <pantelis.antoniou@gmail.com> and *...
Linux kernel'inin 'scripts/dtc/flattree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include "dtc.h" #include "srcpos.h" #define FTF_FULLPATH 0x1 #define FTF_VARALIGN 0x2 #define FTF_NAMEPROPS 0x4 #define FTF_BOOTCPUID 0x8 #define FTF_STRTABSIZE 0x10 #define FTF_STRUCTSIZ...
Linux kernel'inin 'scripts/dtc/srcpos' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2007 Jon Loeliger, Freescale Semiconductor, Inc. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #include "dtc.h" #include "srcpos.h" /* A node in our list of directories to search for source/include files */ struct search_path ...
Linux kernel'inin 'scripts/dtc/livetree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include "dtc.h" #include "srcpos.h" /* * Tree building functions */ void add_label(struct label **labels, char *label) { struct label *new; /* Make sure the label isn't already ther...
Linux kernel'inin 'scripts/dtc/yamltree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright Linaro, Ltd. 2018 * (C) Copyright Arm Holdings. 2017 * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include <stdlib.h> #include <yaml.h> #include "dtc.h" #include "srcpos.h" char *yaml_error_name[] = { [YAML_NO_ERR...
Linux kernel'inin 'scripts/dtc/fdtoverlay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2017 Konsulko Group Inc. All rights reserved. * * Author: * Pantelis Antoniou <pantelis.antoniou@konsulko.com> */ #include <assert.h> #include <ctype.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <in...
Linux işletim sistemi çekirdeği için 'scripts/dtc/srcpos' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2007 Jon Loeliger, Freescale Semiconductor, Inc. */ #ifndef SRCPOS_H #define SRCPOS_H #include <stdio.h> #include <stdbool.h> #include "util.h" struct srcfile_state { FILE *f; char *name; char *dir; int lineno, colno; struct srcfile_state *pr...
Linux kernel'inin 'scripts/dtc/treesource' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. */ #include "dtc.h" #include "srcpos.h" extern FILE *yyin; extern int yyparse(void); extern YYLTYPE yylloc; struct dt_info *parser_output; bool treesource_error; struct dt_info *dt_from_sou...
Linux kernel'inin 'scripts/dtc/util' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2011 The Chromium Authors, All Rights Reserved. * Copyright 2008 Jon Loeliger, Freescale Semiconductor, Inc. * * util_is_printable_string contributed by * Pantelis Antoniou <pantelis.antoniou AT gmail.com> */ #include <ctype.h> #include <stdio.h> #...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_rw' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_blocks_misordered_(const void *fdt, ...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_overlay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2016 Free Electrons * Copyright (C) 2016 NextThing Co. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" /** * overlay_get_target_phandle - r...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_ro' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_nodename_eq_(const void *fdt, int offset, ...
Linux kernel'inin 'scripts/dtc/libfdt/fdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" /* * Minimal sanity check for a read-only tree. fdt_ro_p...
Linux işletim sistemi çekirdeği için 'scripts/dtc/libfdt/libfdt_internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef LIBFDT_INTERNAL_H #define LIBFDT_INTERNAL_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include <fdt.h> #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) #define FDT_TAGALIGN(...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_sw' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_sw_probe_(void *fdt) { if (!can_assume(VA...
Linux işletim sistemi çekirdeği için 'scripts/dtc/libfdt/libfdt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef LIBFDT_H #define LIBFDT_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include "fdt.h" #ifdef __cplusplus extern "C" { #endif #define FDT_FIRST_SUPPORTED_VE...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_empty_tree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2012 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" int fdt_create_empty_tree(void *buf, int bufsize) { int ...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_strerror' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" ...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_wip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" int fdt_setprop_inplace_namelen_partial(void *fdt, int no...
Linux kernel'inin 'scripts/dtc/libfdt/fdt_addresses' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2014 David Gibson <david@gibson.dropbear.id.au> * Copyright (C) 2018 embedded brains GmbH */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" st...
Linux işletim sistemi çekirdeği için 'scripts/dtc/libfdt/fdt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef FDT_H #define FDT_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * Copyright 2012 Kim Phillips, Freescale Semiconductor. */ #ifndef __ASSEMBLER__ struct fdt_header { fdt32_t magic; ...
Linux işletim sistemi çekirdeği için 'scripts/dtc/libfdt/libfdt_env' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef LIBFDT_ENV_H #define LIBFDT_ENV_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * Copyright 2012 Kim Phillips, Freescale Semiconductor. */ #include <stdbool.h> #include <stddef.h> #inclu...
Linux kernel'inin 'scripts/selinux/mdp/mdp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * * mdp - make dummy policy * * When pointed at a kernel tree, builds a dummy policy for that kernel * with exactly one type with full rights to itself. * * Copyright (C) IBM Corporation, 2006 * * Authors: Serge E. Hallyn <serue@us.ibm.com> */ #include <st...
Linux kernel'inin 'scripts/ipe/polgen/polgen' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2024 Microsoft Corporation. All rights reserved. */ #include <stdlib.h> #include <stddef.h> #include <stdio.h> #include <unistd.h> #include <errno.h> static void usage(const char *const name) { printf("Usage: %s OutputFile (PolicyFile)\n", name); ex...
Linux işletim sistemi çekirdeği için 'scripts/gcc-plugins/gcc-common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef GCC_COMMON_H_INCLUDED #define GCC_COMMON_H_INCLUDED #include "bversion.h" #include "gcc-plugin.h" #include "plugin-version.h" #include "config.h" #include "system.h" #include "coretypes.h" #include "tm.h" #include "line-map.h" #include "input.h" #include "tree.h" #i...
Linux işletim sistemi çekirdeği için 'scripts/gcc-plugins/gcc-generate-rtl-pass' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Generator for RTL pass related boilerplate code/data * * Supports gcc 4.5-6 * * Usage: * * 1. before inclusion define PASS_NAME * 2. before inclusion define NO_* for unimplemented callbacks * NO_GATE * NO_EXECUTE * 3. before inclusion define PROPERTIES_*...
Linux kernel'inin 'scripts/gcc-plugins/randomize_layout_plugin' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright 2014-2016 by Open Source Security, Inc., Brad Spengler <spender@grsecurity.net> * and PaX Team <pageexec@freemail.hu> * Licensed under the GPL v2 * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library excep...
Linux kernel'inin 'scripts/gcc-plugins/stackleak_plugin' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2011-2017 by the PaX Team <pageexec@freemail.hu> * Modified by Alexander Popov <alex.popov@linux.com> * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL v3, * but f...
Linux işletim sistemi çekirdeği için 'scripts/gcc-plugins/gcc-generate-gimple-pass' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Generator for GIMPLE pass related boilerplate code/data * * Supports gcc 4.5-6 * * Usage: * * 1. before inclusion define PASS_NAME * 2. before inclusion define NO_* for unimplemented callbacks * NO_GATE * NO_EXECUTE * 3. before inclusion define PROPERTIE...
Linux işletim sistemi çekirdeği için 'scripts/gcc-plugins/gcc-generate-ipa-pass' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Generator for IPA pass related boilerplate code/data * * Supports gcc 4.5-6 * * Usage: * * 1. before inclusion define PASS_NAME * 2. before inclusion define NO_* for unimplemented callbacks * NO_GENERATE_SUMMARY * NO_READ_SUMMARY * NO_WRITE_SUMMARY *...
Linux işletim sistemi çekirdeği için 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Generator for SIMPLE_IPA pass related boilerplate code/data * * Supports gcc 4.5-6 * * Usage: * * 1. before inclusion define PASS_NAME * 2. before inclusion define NO_* for unimplemented callbacks * NO_GATE * NO_EXECUTE * 3. before inclusion define PROPE...
Linux kernel'inin 'scripts/gcc-plugins/latent_entropy_plugin' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2012-2016 by the PaX Team <pageexec@freemail.hu> * Copyright 2016 by Emese Revfy <re.emese@gmail.com> * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL v3, *...
Linux kernel'inin 'scripts/kconfig/nconf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> * * Derived from menuconfig. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <locale.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include <list.h> #include <xalloc.h> #include "lkc.h"...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef INTERNAL_H #define INTERNAL_H #include <hashtable.h> #define SYMBOL_HASHSIZE (1U << 14) extern HASHTABLE_DECLARE(sym_hashtable, SYMBOL_HASHSIZE); #define for_all_symbols(sym) \ hash_for_each(sym_hashtable, sym, node) #define EXPR_HASHSIZE (1U << 14) exte...
Linux kernel'inin 'scripts/kconfig/mconf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * * Introduced single menu mode (show all sub-menus in one large tree). * 2002-11-06 Petr Baudis <pasky@ucw.cz> * * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br> */ #include <ctype.h> #include <e...
Linux kernel'inin 'scripts/kconfig/confdata' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include...
Linux kernel'inin 'scripts/kconfig/nconf.gui' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> * * Derived from menuconfig. */ #include <xalloc.h> #include "nconf.h" #include "lkc.h" int attr_normal; int attr_main_heading; int attr_main_menu_box; int attr_main_menu_fore; int attr_main_menu_back; int attr_mai...
Linux kernel'inin 'scripts/kconfig/symbol' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <sys/types.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <regex.h> #include <hash.h> #include <xalloc.h> #include "internal.h" #include "lkc.h" struct symbol symbol_yes = { .n...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/nconf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> * * Derived from menuconfig. */ #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <ncurses.h> #...
Linux kernel'inin 'scripts/kconfig/gconf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> */ #include <stdlib.h> #include "lkc.h" #include <gtk/gtk.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <unistd.h> #include <time.h> enum view_mode { SINGLE_VIEW, SPLIT_VIEW, FULL_VIEW }...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/lkc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #ifndef LKC_H #define LKC_H #include <assert.h> #include <stdio.h> #include <stdlib.h> #include "expr.h" #ifdef __cplusplus extern "C" { #endif #include "lkc_proto.h" #define SRCTREE "srctree" #ifndef CO...
Linux kernel'inin 'scripts/kconfig/menu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <ctype.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <list.h> #include <xalloc.h> #include "lkc.h" #include "internal.h" static const char nohelp_text[] = "There is no help av...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/preprocess' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef PREPROCESS_H #define PREPROCESS_H enum variable_flavor { VAR_SIMPLE, VAR_RECURSIVE, VAR_APPEND, }; struct gstr; void env_write_dep(struct gstr *gs); void variable_add(const char *name, const char *value, enum variable_flavor flavor); void variable_all_de...
Linux kernel'inin 'scripts/kconfig/preprocess' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // // Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <array_size.h> #include <list.h> #include <xalloc.h> #include "internal.h" #...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/qconf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <QCheckBox> #include <QDialog> #include <QHeaderView> #include <QLineEdit> #include <QMainWindow> #include <QPushButton> #include <QSettings> #include <QSplitter> #include <QStyledItemDelegate> #inclu...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/expr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #ifndef EXPR_H #define EXPR_H #ifdef __cplusplus extern "C" { #endif #include <assert.h> #include <stdio.h> #ifndef __cplusplus #include <stdbool.h> #endif #include <list_types.h> typedef enum tristate { ...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/mnconf-common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef MNCONF_COMMON_H #define MNCONF_COMMON_H #include <stddef.h> #include <list_types.h> struct search_data { struct list_head *head; struct menu *target; }; extern int jump_key_char; int next_jump_key(int key); int handle_search_keys(int key, size_t start, siz...
Linux kernel'inin 'scripts/kconfig/mnconf-common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <list.h> #include "expr.h" #include "mnconf-common.h" int jump_key_char; int next_jump_key(int key) { if (key < '1' || key > '9') return '1'; key++; if (key > '9') key = '1'; return key; } int handle_search_keys(int key, size_t start, size_t end, void...
Linux kernel'inin 'scripts/kconfig/expr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <hash.h> #include <xalloc.h> #include "internal.h" #include "lkc.h" #define DEBUG_EXPR 0 HASHTABLE_DEFI...
Linux kernel'inin 'scripts/kconfig/conf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> */ #include <ctype.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <errno.h> #include "inte...
Linux kernel'inin 'scripts/kconfig/util' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org> */ #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <hash.h> #include <hashtable.h> #include <xalloc.h> #include "lkc.h" /* hash ...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/lkc_proto' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef LKC_PROTO_H #define LKC_PROTO_H #include <stdarg.h> /* confdata.c */ void conf_parse(const char *name); int conf_read(const char *name); int conf_read_simple(const char *name, int); int conf_write_defconfig(const char *name); int conf_write(const char *name); int co...
Linux kernel'inin 'scripts/kconfig/lxdialog/textbox' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * textbox.c -- implements the text box * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) */ #include "dialog.h" static int hscroll; static int begin_reached, end_reached, page_length; static ...
Linux kernel'inin 'scripts/kconfig/lxdialog/checklist' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * checklist.c -- implements the checklist box * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension * Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two * MODIFIED FOR LINUX KERNEL CONFIG...
Linux kernel'inin 'scripts/kconfig/lxdialog/inputbox' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * inputbox.c -- implements the input box * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) */ #include "dialog.h" char dialog_input_result[MAX_LEN + 1]; /* * Print the termination buttons ...
Linux kernel'inin 'scripts/kconfig/lxdialog/menubox' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * menubox.c -- implements the menu box * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com) */ /* * Changes by Clifford Wolf (god@clifford.at) * * [ 1998-06-13 ] * * *) A bugfix for t...
Linux işletim sistemi çekirdeği için 'scripts/kconfig/lxdialog/dialog' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ /* * dialog.h -- common declarations for all dialog modules * * AUTHOR: Savio Lam (lam836@cs.cuhk.hk) */ #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #ifdef __sun__ #defi...
Linux kernel'inin 'scripts/kconfig/lxdialog/yesno' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * yesno.c -- implements the yes/no box * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) */ #include "dialog.h" /* * Display termination buttons */ static void print_buttons(WINDOW * dialog...
Linux kernel'inin 'scripts/kconfig/lxdialog/util' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * util.c * * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) */ #include <stdarg.h> #include "dialog.h" /* Needed in signal handler in mconf.c */ int saved_x, saved_y; struct dialog_info dlg;...
Linux kernel'inin 'scripts/gendwarfksyms/symbols' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #include <inttypes.h> #include "gendwarfksyms.h" #define SYMBOL_HASH_BITS 12 /* struct symbol_addr -> struct symbol */ static HASHTABLE_DEFINE(symbol_addrs, 1 << SYMBOL_HASH_BITS); /* name -> struct symbol */ static HASHTABLE_DEFINE(sym...
Linux kernel'inin 'scripts/gendwarfksyms/die' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #include <string.h> #include "gendwarfksyms.h" #define DIE_HASH_BITS 16 /* {die->addr, state} -> struct die * */ static HASHTABLE_DEFINE(die_map, 1 << DIE_HASH_BITS); static unsigned int map_hits; static unsigned int map_misses; stati...
Linux işletim sistemi çekirdeği için 'scripts/gendwarfksyms/gendwarfksyms' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2024 Google LLC */ #include <dwarf.h> #include <elfutils/libdw.h> #include <elfutils/libdwfl.h> #include <stdlib.h> #include <stdio.h> #include <hash.h> #include <hashtable.h> #include <xalloc.h> #ifndef __GENDWARFKSYMS_H #define __GENDWARFKSYMS_H /* ...
Linux kernel'inin 'scripts/gendwarfksyms/kabi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #define _GNU_SOURCE #include <errno.h> #include <stdio.h> #include "gendwarfksyms.h" #define KABI_RULE_SECTION ".discard.gendwarfksyms.kabi_rules" #define KABI_RULE_VERSION "1" /* * The rule section consists of four null-terminated st...
Linux kernel'inin 'scripts/gendwarfksyms/dwarf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #define _GNU_SOURCE #include <assert.h> #include <inttypes.h> #include <stdarg.h> #include "gendwarfksyms.h" /* See get_union_kabi_status */ #define KABI_PREFIX "__kabi_" #define KABI_PREFIX_LEN (sizeof(KABI_PREFIX) - 1) #define KABI_RES...
Linux kernel'inin 'scripts/gendwarfksyms/gendwarfksyms' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #include <fcntl.h> #include <getopt.h> #include <errno.h> #include <stdarg.h> #include <string.h> #include <unistd.h> #include "gendwarfksyms.h" /* * Options */ /* Print debugging information to stderr */ int debug; /* Dump DIE conten...
Linux kernel'inin 'scripts/gendwarfksyms/types' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #define _GNU_SOURCE #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <zlib.h> #include "gendwarfksyms.h" static struct cache expansion_cache; /* * A simple linked list of shared or owned string...
Linux kernel'inin 'scripts/gendwarfksyms/cache' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC */ #include "gendwarfksyms.h" struct cache_item { unsigned long key; int value; struct hlist_node hash; }; void cache_set(struct cache *cache, unsigned long key, int value) { struct cache_item *ci; ci = xmalloc(sizeof(*ci)); ci->key...
Linux işletim sistemi çekirdeği için 'scripts/gendwarfksyms/examples/kabi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2024 Google LLC * * Example macros for maintaining kABI stability. * * This file is based on android_kabi.h, which has the following notice: * * Heavily influenced by rh_kabi.h which came from the RHEL/CENTOS kernel * and was: * Copyright (c) 2014 ...
Linux kernel'inin 'scripts/gendwarfksyms/examples/symbolptr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Google LLC * * Example for symbol pointers. When compiled with Clang, gendwarfkyms * uses a symbol pointer for `f`. * * $ clang -g -c examples/symbolptr.c -o examples/symbolptr.o * $ echo -e "f\ng\np" | ./gendwarfksyms -d examples/symbolptr.o */ ...
Linux kernel'inin 'scripts/gendwarfksyms/examples/kabi_ex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * kabi_ex.c * * Copyright (C) 2024 Google LLC * * Examples for kABI stability features with --stable. See kabi_ex.h * for details. */ #include "kabi_ex.h" struct s e0; enum e e1; struct ex0a ex0a; struct ex0b ex0b; struct ex0c ex0c; struct ex1a ex1a; struct ex1b ex...
Linux işletim sistemi çekirdeği için 'scripts/gendwarfksyms/examples/kabi_ex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * kabi_ex.h * * Copyright (C) 2024 Google LLC * * Examples for kABI stability features with --stable. */ /* * The comments below each example contain the expected gendwarfksyms * output, which can be verified using LLVM's FileCheck tool: * * https://llvm.org/doc...