Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
void md_autodetect_dev(dev_t dev);
#ifdef CONFIG_BLK_DEV_MD
void md_run_setup(void);
#else
static inline void md_run_setup(void)
{
}
#endif
+24
View File
@@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright 2003 H. Peter Anvin - All Rights Reserved
*
* Public interface to the RAID6 P/Q calculation and recovery library.
*/
#ifndef LINUX_RAID_PQ_H
#define LINUX_RAID_PQ_H
#include <linux/types.h>
#define RAID6_MIN_DISKS 4
void raid6_gen_syndrome(int disks, size_t bytes, void **ptrs);
void raid6_xor_syndrome(int disks, int start, int stop, size_t bytes,
void **ptrs);
bool raid6_can_xor_syndrome(void);
void raid6_recov_2data(int disks, size_t bytes, int faila, int failb,
void **ptrs);
void raid6_recov_datap(int disks, size_t bytes, int faila,
void **ptrs);
#endif /* LINUX_RAID_PQ_H */
@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright 2003 H. Peter Anvin - All Rights Reserved
*
* Galois field tables for the Linux RAID6 P/Q parity algorithm.
*/
#ifndef _LINUX_RAID_PQ_TABLES_H
#define _LINUX_RAID_PQ_TABLES_H
#include <linux/types.h>
extern const u8 raid6_gfmul[256][256] __attribute__((aligned(256)));
extern const u8 raid6_vgfmul[256][32] __attribute__((aligned(256)));
extern const u8 raid6_gfexp[256] __attribute__((aligned(256)));
extern const u8 raid6_gflog[256] __attribute__((aligned(256)));
extern const u8 raid6_gfinv[256] __attribute__((aligned(256)));
extern const u8 raid6_gfexi[256] __attribute__((aligned(256)));
#endif /* _LINUX_RAID_PQ_TABLES_H */
+7
View File
@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _XOR_H
#define _XOR_H
void xor_gen(void *dest, void **srcs, unsigned int src_cnt, unsigned int bytes);
#endif /* _XOR_H */