Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /* Module internals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Written by David Howells (dhowells@redhat.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/elf.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <asm/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct load_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	/* pointer to module in temporary copy, freed at end of load_module() */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	struct module *mod;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	Elf_Ehdr *hdr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	unsigned long len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	Elf_Shdr *sechdrs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	char *secstrings, *strtab;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	unsigned long symoffs, stroffs, init_typeoffs, core_typeoffs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	struct _ddebug *debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	unsigned int num_debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	bool sig_ok;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #ifdef CONFIG_KALLSYMS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	unsigned long mod_kallsyms_init_off;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		unsigned int sym, str, mod, vers, info, pcpu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	} index;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern int mod_verify_sig(const void *mod, struct load_info *info);