instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'security/keys/gc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Key garbage collector * * Copyright (C) 2009-2011 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/slab.h> #include <linux/security.h> #include <keys/keyring-type.h> #include "internal.h" /* * Delay between...
Linux kernel'inin 'security/keys/keyctl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Userspace key control operations * * Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/init.h> #include <linux/sched.h> #include <linux/sched/task.h> #include <linux/slab.h> #include <linu...
Linux kernel'inin 'security/keys/sysctl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Key management controls * * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/key.h> #include <linux/sysctl.h> #include "internal.h" static const struct ctl_table key_sysctls[] = { { .pr...
Linux kernel'inin 'security/keys/compat_dh' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* 32-bit compatibility syscall for 64-bit systems for DH operations * * Copyright (C) 2016 Stephan Mueller <smueller@chronox.de> */ #include <linux/uaccess.h> #include "internal.h" /* * Perform the DH computation or DH based key derivation. * * If successful, ...
Linux kernel'inin 'security/keys/compat' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* 32-bit compatibility syscall for 64-bit systems * * Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/syscalls.h> #include <linux/keyctl.h> #include <linux/compat.h> #include <linux/slab.h...
Linux kernel'inin 'security/keys/keyring' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Keyring handling * * Copyright (C) 2004-2005, 2008, 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/export.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/sec...
Linux kernel'inin 'security/keys/user_defined' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* user_defined.c: user defined key type * * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/export.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/seq_file.h> #include <li...
Linux kernel'inin 'security/keys/process_keys' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Manage a process's keyrings * * Copyright (C) 2004-2005, 2008 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/init.h> #include <linux/sched.h> #include <linux/sched/user.h> #include <linux/keyctl.h> #include...
Linux kernel'inin 'security/keys/keyctl_pkey' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Public-key operation keyctls * * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/slab.h> #include <linux/err.h> #include <linux/key.h> #include <linux/keyctl.h> #include <linux/parser.h> #...
Linux kernel'inin 'security/keys/dh' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Crypto operations using stored keys * * Copyright (c) 2016, Intel Corporation */ #include <linux/slab.h> #include <linux/uaccess.h> #include <linux/scatterlist.h> #include <linux/crypto.h> #include <crypto/hash.h> #include <crypto/kpp.h> #include <crypto/dh.h> #i...
Linux kernel'inin 'security/keys/request_key_auth' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Request key authorisation token key definition. * * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * See Documentation/security/keys/request-key.rst */ #include <linux/sched.h> #include <linux/err.h> #i...
Linux kernel'inin 'security/keys/permission' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Key permission checking * * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/export.h> #include <linux/security.h> #include "internal.h" /** * key_task_permission - Check a key can be use...
Linux kernel'inin 'security/keys/trusted-keys/trusted_pkwm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2025 IBM Corporation, Srish Srinivasan <ssrish@linux.ibm.com> */ #include <keys/trusted_pkwm.h> #include <keys/trusted-type.h> #include <linux/build_bug.h> #include <linux/key-type.h> #include <linux/parser.h> #include <asm/plpks.h> enum { Opt_err, ...
Linux kernel'inin 'security/keys/trusted-keys/trusted_dcp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2021 sigma star gmbh */ #include <crypto/aead.h> #include <crypto/aes.h> #include <crypto/algapi.h> #include <crypto/gcm.h> #include <crypto/skcipher.h> #include <keys/trusted-type.h> #include <linux/key-type.h> #include <linux/module.h> #include <linu...
Linux kernel'inin 'security/keys/trusted-keys/trusted_tee' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019-2021 Linaro Ltd. * * Author: * Sumit Garg <sumit.garg@linaro.org> */ #include <linux/err.h> #include <linux/key-type.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/string.h> #include <linux/tee_drv.h> #include <linux/uuid.h> #...
Linux kernel'inin 'security/keys/trusted-keys/trusted_caam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2021 Pengutronix, Ahmad Fatoum <kernel@pengutronix.de> * Copyright 2025 NXP */ #include <keys/trusted_caam.h> #include <keys/trusted-type.h> #include <linux/build_bug.h> #include <linux/key-type.h> #include <linux/parser.h> #include <soc/fsl/caam-blob...
Linux kernel'inin 'security/keys/trusted-keys/trusted_tpm2' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2004 IBM Corporation * Copyright (C) 2014 Intel Corporation */ #include <linux/asn1_encoder.h> #include <linux/oid_registry.h> #include <linux/string.h> #include <linux/err.h> #include <linux/tpm.h> #include <linux/tpm_command.h> #include <keys/trust...
Linux kernel'inin 'security/keys/trusted-keys/trusted_core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 IBM Corporation * Copyright (c) 2019-2021, Linaro Limited * * See Documentation/security/keys/trusted-encrypted.rst */ #include <keys/user-type.h> #include <keys/trusted-type.h> #include <keys/trusted_tee.h> #include <keys/trusted_caam.h> #incl...
Linux kernel'inin 'security/keys/trusted-keys/trusted_tpm1' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 IBM Corporation * Copyright (c) 2019-2021, Linaro Limited * * See Documentation/security/keys/trusted-encrypted.rst */ #include <crypto/hash_info.h> #include <crypto/sha1.h> #include <crypto/utils.h> #include <linux/hex.h> #include <linux/init....
Linux kernel'inin 'security/keys/encrypted-keys/ecryptfs_format' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ecryptfs_format.c: helper functions for the encrypted key type * * Copyright (C) 2006 International Business Machines Corp. * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- https://security.polito.it * * Authors: * Michael ...
Linux işletim sistemi çekirdeği için 'security/keys/encrypted-keys/ecryptfs_format' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * ecryptfs_format.h: helper functions for the encrypted key type * * Copyright (C) 2006 International Business Machines Corp. * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- https://security.polito.it * * Authors: * Micha...
Linux kernel'inin 'security/keys/encrypted-keys/encrypted' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- https://security.polito.it * * Authors: * Mimi Zohar <zohar@us.ibm.com> * Roberto Sassu <roberto.sassu@polito.it> * * See Documentation/se...
Linux işletim sistemi çekirdeği için 'security/keys/encrypted-keys/encrypted' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ENCRYPTED_KEY_H #define __ENCRYPTED_KEY_H #define ENCRYPTED_DEBUG 0 #if defined(CONFIG_TRUSTED_KEYS) || \ (defined(CONFIG_TRUSTED_KEYS_MODULE) && defined(CONFIG_ENCRYPTED_KEYS_MODULE)) extern struct key *request_trusted_key(const char *trusted_desc, co...
Linux kernel'inin 'security/keys/encrypted-keys/masterkey_trusted' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- https://security.polito.it * * Authors: * Mimi Zohar <zohar@us.ibm.com> * Roberto Sassu <roberto.sassu@polito.it> * * See Documentation/se...
Linux kernel'inin 'security/lockdown/lockdown' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Lock down the kernel * * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as publishe...
Linux kernel'inin 'security/bpf/hooks' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Google LLC. */ #include <linux/lsm_hooks.h> #include <linux/bpf_lsm.h> #include <uapi/linux/lsm.h> static struct security_hook_list bpf_lsm_hooks[] __ro_after_init = { #define LSM_HOOK(RET, DEFAULT, NAME, ...) \ LSM_HOOK_INIT(NAME, bpf_lsm_##NAME), ...
Linux işletim sistemi çekirdeği için 'security/smack/smack' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com> * * Author: * Casey Schaufler <casey@schaufler-ca.com> */ #ifndef _SECURITY_SMACK_H #define _SECURITY_SMACK_H #include <linux/capability.h> #include <linux/spinlock.h> #include <linux/lsm_hooks....
Linux kernel'inin 'security/smack/smack_access' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com> * * Author: * Casey Schaufler <casey@schaufler-ca.com> */ #include <linux/types.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/sched.h> #include "smack.h" struct smack_known smack...
Linux kernel'inin 'security/smack/smackfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com> * * Authors: * Casey Schaufler <casey@schaufler-ca.com> * Ahmed S. Darwish <darwish.07@gmail.com> * * Special thanks to the authors of selinuxfs. * * Karl MacMillan <kmacmillan@tresys.com> * James ...
Linux kernel'inin 'security/smack/smack_lsm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Simplified MAC Kernel (smack) security module * * This file contains the smack hook function implementations. * * Authors: * Casey Schaufler <casey@schaufler-ca.com> * Jarkko Sakkinen <jarkko.sakkinen@intel.com> * * Copyright (C) 2007 Casey Schaufler <case...
Linux kernel'inin 'security/smack/smack_netfilter' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Simplified MAC Kernel (smack) security module * * This file contains the Smack netfilter implementation * * Author: * Casey Schaufler <casey@schaufler-ca.com> * * Copyright (C) 2014 Casey Schaufler <casey@schaufler-ca.com> * Copyright (C) 2014 Intel Corpo...
Linux kernel'inin 'security/landlock/tsync' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Cross-thread ruleset enforcement * * Copyright © 2025 Google LLC */ #include <linux/atomic.h> #include <linux/cleanup.h> #include <linux/completion.h> #include <linux/cred.h> #include <linux/errno.h> #include <linux/overflow.h> #include <linux/rcupdate....
Linux kernel'inin 'security/landlock/object' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock LSM - Object management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #include <linux/bug.h> #include <linux/compiler_types.h> #include <linux/err.h> #include <linux/kernel.h> #include <linux/rcupdate.h> #inc...
Linux işletim sistemi çekirdeği için 'security/landlock/net' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Network management and hooks * * Copyright © 2022-2023 Huawei Tech. Co., Ltd. */ #ifndef _SECURITY_LANDLOCK_NET_H #define _SECURITY_LANDLOCK_NET_H #include "common.h" #include "ruleset.h" #include "setup.h" #if IS_ENABLED(CONFIG_INET) __init vo...
Linux kernel'inin 'security/landlock/syscalls' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - System call implementations and user space interfaces * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2021-2025 Microsoft Corporation */ #include <asm/current.h> #include <linux/anon_inodes.h> #in...
Linux kernel'inin 'security/landlock/audit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Audit helpers * * Copyright © 2023-2025 Microsoft Corporation */ #include <kunit/test.h> #include <linux/audit.h> #include <linux/bitops.h> #include <linux/lsm_audit.h> #include <linux/pid.h> #include <uapi/linux/landlock.h> #include "access.h" #includ...
Linux işletim sistemi çekirdeği için 'security/landlock/task' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Ptrace hooks * * Copyright © 2017-2019 Mickaël Salaün <mic@digikod.net> * Copyright © 2019 ANSSI */ #ifndef _SECURITY_LANDLOCK_TASK_H #define _SECURITY_LANDLOCK_TASK_H __init void landlock_add_task_hooks(void); #endif /* _SECURITY_LANDLOCK_TAS...
Linux kernel'inin 'security/landlock/cred' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Credential hooks * * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #include <linux/binfmts.h> #include <linux/cred.h> #include <linux/lsm_hooks.h> #include "commo...
Linux kernel'inin 'security/landlock/domain' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Domain management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #include <kunit/test.h> #include <linux/bitops.h> #include <linux/bits.h> #include <linux/cred....
Linux işletim sistemi çekirdeği için 'security/landlock/errata' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Errata information * * Copyright © 2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_ERRATA_H #define _SECURITY_LANDLOCK_ERRATA_H #include <linux/init.h> struct landlock_erratum { const int abi; const u8 number; }; /* clang-format off */ ...
Linux işletim sistemi çekirdeği için 'security/landlock/object' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Object management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #ifndef _SECURITY_LANDLOCK_OBJECT_H #define _SECURITY_LANDLOCK_OBJECT_H #include <linux/compiler_types.h> #include <linux/refcount.h> ...
Linux işletim sistemi çekirdeği için 'security/landlock/setup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Security framework setup * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #ifndef _SECURITY_LANDLOCK_SETUP_H #define _SECURITY_LANDLOCK_SETUP_H #include <linux/lsm_hooks.h> extern const int landlock_a...
Linux işletim sistemi çekirdeği için 'security/landlock/tsync' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Cross-thread ruleset enforcement * * Copyright © 2025 Google LLC */ #ifndef _SECURITY_LANDLOCK_TSYNC_H #define _SECURITY_LANDLOCK_TSYNC_H #include <linux/cred.h> int landlock_restrict_sibling_threads(const struct cred *old_cred, const str...
Linux işletim sistemi çekirdeği için 'security/landlock/fs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Filesystem management and hooks * * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_FS_H #define _SECURITY_LANDLOCK_FS_H #include <lin...
Linux kernel'inin 'security/landlock/task' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Ptrace and scope hooks * * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2019-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #include <asm/current.h> #include <linux/cleanup.h> #include <linux/cred.h> #include <linu...
Linux kernel'inin 'security/landlock/net' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Network management and hooks * * Copyright © 2022-2023 Huawei Tech. Co., Ltd. * Copyright © 2022-2025 Microsoft Corporation */ #include <linux/in.h> #include <linux/lsm_audit.h> #include <linux/net.h> #include <linux/socket.h> #include <net/ipv6.h> #i...
Linux işletim sistemi çekirdeği için 'security/landlock/id' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Unique identification number generator * * Copyright © 2024-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_ID_H #define _SECURITY_LANDLOCK_ID_H #ifdef CONFIG_AUDIT void __init landlock_init_id(void); u64 landlock_get_id_range(size_t numb...
Linux kernel'inin 'security/landlock/id' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Unique identification number generator * * Copyright © 2024-2025 Microsoft Corporation */ #include <kunit/test.h> #include <linux/atomic.h> #include <linux/bitops.h> #include <linux/random.h> #include <linux/spinlock.h> #include "common.h" #include "id...
Linux kernel'inin 'security/landlock/setup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock LSM - Security framework setup * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #include <linux/bits.h> #include <linux/init.h> #include <linux/lsm_hooks.h> #include <uapi/linux/lsm.h> #include "common.h" #incl...
Linux kernel'inin 'security/landlock/fs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock - Filesystem management and hooks * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2021-2025 Microsoft Corporation * Copyright © 2022 Günther Noack <gnoack3000@gmail.com> * Copyright © 2023-2024 Goog...
Linux işletim sistemi çekirdeği için 'security/landlock/cred' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Credential hooks * * Copyright © 2019-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2019-2020 ANSSI * Copyright © 2021-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_CRED_H #define _SECURITY_LANDLOCK_CRED_H #include <linux/containe...
Linux işletim sistemi çekirdeği için 'security/landlock/ruleset' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Ruleset management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #ifndef _SECURITY_LANDLOCK_RULESET_H #define _SECURITY_LANDLOCK_RULESET_H #include <linux/cleanup.h> #include <linux/err.h> #include ...
Linux işletim sistemi çekirdeği için 'security/landlock/audit' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Audit helpers * * Copyright © 2023-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_AUDIT_H #define _SECURITY_LANDLOCK_AUDIT_H #include <linux/audit.h> #include <linux/lsm_audit.h> #include "access.h" #include "cred.h" enum landlock_reques...
Linux işletim sistemi çekirdeği için 'security/landlock/access' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Access types and helpers * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_ACCESS_H #define _SECURITY_LANDLOCK_ACCESS_H #include <li...
Linux işletim sistemi çekirdeği için 'security/landlock/limits' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Limits for different components * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2021-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_LIMITS_H #define _SECURITY_LANDLOCK_LIMITS_H #incl...
Linux işletim sistemi çekirdeği için 'security/landlock/common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock LSM - Common constants and helpers * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #ifndef _SECURITY_LANDLOCK_COMMON_H #define _SECURITY_LANDLOCK_COMMON_H #define LANDLOCK_NAME "landlock" #ifdef pr_fmt #un...
Linux kernel'inin 'security/landlock/ruleset' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Landlock LSM - Ruleset management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI */ #include <linux/bits.h> #include <linux/bug.h> #include <linux/cleanup.h> #include <linux/compiler_types.h> #include <linux/err.h> #inclu...
Linux işletim sistemi çekirdeği için 'security/landlock/domain' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Landlock - Domain management * * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> * Copyright © 2018-2020 ANSSI * Copyright © 2024-2025 Microsoft Corporation */ #ifndef _SECURITY_LANDLOCK_DOMAIN_H #define _SECURITY_LANDLOCK_DOMAIN_H #include <linux/lim...
Linux işletim sistemi çekirdeği için 'security/landlock/errata/abi-1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /** * DOC: erratum_3 * * Erratum 3: Disconnected directory handling * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This fix addresses an issue with disconnected directories that occur when a * directory is moved outside the scope of a bind mount. The change en...
Linux işletim sistemi çekirdeği için 'security/landlock/errata/abi-4' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /** * DOC: erratum_1 * * Erratum 1: TCP socket identification * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This fix addresses an issue where IPv4 and IPv6 stream sockets (e.g., SMC, * MPTCP, or SCTP) were incorrectly restricted by TCP access rights during * :manpa...
Linux işletim sistemi çekirdeği için 'security/landlock/errata/abi-6' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /** * DOC: erratum_2 * * Erratum 2: Scoped signal handling * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This fix addresses an issue where signal scoping was overly restrictive, * preventing sandboxed threads from signaling other threads within the same * process if t...
Linux kernel'inin 'certs/system_keyring' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* System trusted keyring for trusted public keys * * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/cred.h> #inc...
Linux kernel'inin 'certs/extract-cert' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* Extract X.509 certificate in DER form from PKCS#11 or PEM. * * Copyright © 2014-2015 Red Hat, Inc. All Rights Reserved. * Copyright © 2015 Intel Corporation. * * Authors: David Howells <dhowells@redhat.com> * David Woodhouse <dwmw2@infradead.org> * * This program is free software; you can ...
Linux kernel'inde 'certs/revocation_certificates' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/init.h> __INITRODATA .align 8 .globl revocation_certificate_list revocation_certificate_list: __revocation_list_start: .incbin "certs/x509_revocation_list" __revocation_list_end: .align 8 .globl revocation_certificate_...
Linux kernel'inde 'certs/system_certificates' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/init.h> __INITRODATA .align 8 .globl system_certificate_list system_certificate_list: __cert_list_start: __module_cert_start: .incbin "certs/signing_key.x509" __module_cert_end: .incbin "certs/x509_certificate_list" __ce...
Linux kernel'inin 'certs/blacklist' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* System hash blacklist. * * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #define pr_fmt(fmt) "blacklist: "fmt #include <linux/module.h> #include <linux/slab.h> #include <linux/key.h> #include <linux/key...
Linux işletim sistemi çekirdeği için 'certs/blacklist' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #include <linux/kernel.h> #include <linux/errno.h> #include <crypto/pkcs7.h> extern const char __initconst *const blacklist_hashes[]; ```
Linux kernel'inin 'certs/blacklist_hashes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "blacklist.h" const char __initconst *const blacklist_hashes[] = { #include "blacklist_hash_list" }; ```
Linux kernel'inin 'arch/powerpc/kvm/book3s_64_mmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ #include <linux/types.h> #include <linux/string.h> #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/highmem.h> #include <asm/kvm_ppc.h> #include <asm/kvm_b...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_tm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2017 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kvm_host.h> #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h> #include <asm/kvm_book3s_64.h> #include <asm/reg.h> #include <asm/ppc-opco...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_tm_builtin' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2017 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <linux/kvm_host.h> #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h> #include <asm/kvm_book3s_64.h> #include <asm/reg.h> #include <asm/ppc-opcode.h> /* * This handles the cases where the...
Linux kernel'inin 'arch/powerpc/kvm/book3s_mmu_hpte' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 SUSE Linux Products GmbH. All rights reserved. * * Authors: * Alexander Graf <agraf@suse.de> */ #include <linux/kvm_host.h> #include <linux/hash.h> #include <linux/slab.h> #include <linux/rculist.h> #include <asm/kvm_ppc.h> #include <asm/k...
Linux kernel'inin 'arch/powerpc/kvm/book3s_64_mmu_radix' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright 2016 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <linux/types.h> #include <linux/string.h> #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/anon_inodes.h> #include <linux/file.h> #include <linux/debugfs.h> #include <linu...
Linux kernel'inin 'arch/powerpc/kvm/timing' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright IBM Corp. 2008 * * Authors: Hollis Blanchard <hollisb@us.ibm.com> * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> */ #include <linux/kvm_host.h> #include <linux/fs.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/...
Linux kernel'inin 'arch/powerpc/kvm/book3s_32_mmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ #include <linux/types.h> #include <linux/string.h> #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/highmem.h> #include <asm/kvm_ppc.h> #include <asm/kvm_b...
Linux kernel'inin 'arch/powerpc/kvm/book3s_xive' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2017 Benjamin Herrenschmidt, IBM Corporation. */ #define pr_fmt(fmt) "xive-kvm: " fmt #include <linux/kernel.h> #include <linux/kvm_host.h> #include <linux/err.h> #include <linux/gfp.h> #include <linux/spinlock.h> #include <linux/delay.h> #include <linux/...
Linux kernel'inin 'arch/powerpc/kvm/e500_emulate' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, <yu.liu@freescale.com> * * Description: * This file is derived from arch/powerpc/kvm/44x_emulate.c, * by Hollis Blanchard <hollisb@us.ibm.com>. */ #include <asm/kvm_...
Linux kernel'inin 'arch/powerpc/kvm/e500' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, <yu.liu@freescale.com> * * Description: * This file is derived from arch/powerpc/kvm/44x.c, * by Hollis Blanchard <hollisb@us.ibm.com>. */ #include <linux/kvm_host.h...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2011 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * Copyright (C) 2009. SUSE Linux Products GmbH. All rights reserved. * * Authors: * Paul Mackerras <paulus@au1.ibm.com> * Alexander Graf <agraf@suse.de> * Kevin Wolf <mail@kevin-wolf.de> * ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/trace_hv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_HV_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_HV_H #include <linux/tracepoint.h> #include "trace_book3s.h" #include <asm/hvcall.h> #include <asm/kvm_asm.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_hv #define kvm_trace_symbol_hcall...
Linux kernel'inde 'arch/powerpc/kvm/book3s_rmhandlers' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ #include <asm/ppc_asm.h> #include <asm/kvm_asm.h> #include <asm/reg.h> #include <asm/mmu.h> #include <asm/page.h> #include <asm/asm-offsets.h> #include <asm/asm-com...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/book3s_xive' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2017 Benjamin Herrenschmidt, IBM Corporation */ #ifndef _KVM_PPC_BOOK3S_XIVE_H #define _KVM_PPC_BOOK3S_XIVE_H #ifdef CONFIG_KVM_XICS #include "book3s_xics.h" /* * The XIVE Interrupt source numbers are within the range 0 to * KVMPPC_XICS_NR_IRQS. */...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_uvmem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Secure pages management: Migration of pages between normal and secure * memory of KVM guests. * * Copyright 2018 Bharata B Rao, IBM Corp. <bharata@linux.ibm.com> */ /* * A pseries guest can be run as secure guest on Ultravisor-enabled * POWER platforms. On such plat...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_rm_mmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright 2010-2011 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <linux/types.h> #include <linux/string.h> #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/hugetlb.h> #include <linux/module.h> #include <linux/log2.h> #include <linu...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/trace_pr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_PR_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_PR_H #include <linux/tracepoint.h> #include "trace_book3s.h" #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_pr TRACE_EVENT(kvm_book3s_reenter, TP_PROTO(int r, struct kvm_vcpu *vcpu), TP_A...
Linux kernel'inde 'arch/powerpc/kvm/bookehv_interrupts' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. * * Author: Varun Sethi <varun.sethi@freescale.com> * Author: Scott Wood <scotwood@freescale.com> * Author: Mihai Caraman <mihai.caraman@freescale.com> * * This file is derived from arch/powerpc/...
Linux kernel'inde 'arch/powerpc/kvm/book3s_interrupts' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ #include <asm/ppc_asm.h> #include <asm/kvm_asm.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/asm-offsets.h> #include <asm/exception-64s.h> #include <a...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_nestedv2' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2023 Jordan Niethe, IBM Corp. <jniethe5@gmail.com> * * Authors: * Jordan Niethe <jniethe5@gmail.com> * * Description: KVM functions specific to running on Book 3S * processors as a NESTEDv2 guest. * */ #include "linux/blk-mq.h" #include "linux/co...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_p9_entry' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/kernel.h> #include <linux/kvm_host.h> #include <asm/asm-prototypes.h> #include <asm/dbell.h> #include <asm/ppc-opcode.h> #include "book3s_hv.h" static void load_spr_state(struct kvm_vcpu *vcpu, struct p9_host_os_sprs *host_os_sprs) { /* TAR is very fa...
Linux kernel'inin 'arch/powerpc/kvm/book3s_pr_papr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2011. Freescale Inc. All rights reserved. * * Authors: * Alexander Graf <agraf@suse.de> * Paul Mackerras <paulus@samba.org> * * Description: * * Hypercall handling for running PAPR guests in PR KVM on Book 3S * processors. */ #include <l...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/book3s_hv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Privileged (non-hypervisor) host registers to save. */ #include "asm/guest-state-buffer.h" struct p9_host_os_sprs { unsigned long iamr; unsigned long amr; unsigned int pmc1; unsigned int pmc2; unsigned int pmc3; unsigned int pmc4; unsigned int pmc5; unsign...
Linux kernel'inin 'arch/powerpc/kvm/book3s_64_mmu_host' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2009 SUSE Linux Products GmbH. All rights reserved. * * Authors: * Alexander Graf <agraf@suse.de> * Kevin Wolf <mail@kevin-wolf.de> */ #include <linux/kvm_host.h> #include <linux/pkeys.h> #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h...
Linux kernel'inde 'arch/powerpc/kvm/book3s_32_sr' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ /****************************************************************************** * * * ...
Linux kernel'inin 'arch/powerpc/kvm/e500_mmu_host' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, yu.liu@freescale.com * Scott Wood, scottwood@freescale.com * Ashish Kalra, ashish.kalra@freescale.com * Varun Sethi, varun.sethi@freescale.com ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/timing' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright IBM Corp. 2008 * * Authors: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> */ #ifndef __POWERPC_KVM_EXITTIMING_H__ #define __POWERPC_KVM_EXITTIMING_H__ #include <linux/kvm_host.h> #ifdef CONFIG_KVM_EXIT_TIMING void kvmppc_init_timing_stats(stru...
Linux kernel'inin 'arch/powerpc/kvm/book3s_exports' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright SUSE Linux Products GmbH 2009 * * Authors: Alexander Graf <agraf@suse.de> */ #include <linux/export.h> #include <asm/kvm_ppc.h> #include <asm/kvm_book3s.h> #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE EXPORT_SYMBOL_GPL(kvmppc_hv_entry_trampoline); #endif #if...
Linux kernel'inin 'arch/powerpc/kvm/book3s' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2009. SUSE Linux Products GmbH. All rights reserved. * * Authors: * Alexander Graf <agraf@suse.de> * Kevin Wolf <mail@kevin-wolf.de> * * Description: * This file is derived from arch/powerpc/kvm/44x.c, * by Hollis Blanchard <hollisb@us.ibm....
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_p9_perf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <asm/kvm_ppc.h> #include <asm/pmc.h> #include "book3s_hv.h" static void freeze_pmu(unsigned long mmcr0, unsigned long mmcra) { if (!(mmcr0 & MMCR0_FC)) goto do_freeze; if (mmcra & MMCRA_SAMPLE_ENABLE) goto do_freeze; if (cpu_has_feature(CPU_FTR_ARCH_31)) ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kvm/e500' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu <yu.liu@freescale.com> * Scott Wood <scottwood@freescale.com> * Ashish Kalra <ashish.kalra@freescale.com> * Varun Sethi <varun.sethi@freescale...
Linux kernel'inin 'arch/powerpc/kvm/book3s_hv_hmi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Hypervisor Maintenance Interrupt (HMI) handling. * * Copyright 2015 IBM Corporation * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> */ #undef DEBUG #include <linux/types.h> #include <linux/compiler.h> #include <asm/paca.h> #include <asm/hmi.h> #inclu...