cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/kernel/pmem.c

Directory: arch/x86/kernel
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2015, Christoph Hellwig.
 * Copyright (c) 2015, Intel Corporation.
 */
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/ioport.h>


static int found(u64 start, u64 end, void *data) { return 1; }

Contributors

PersonTokensPropCommitsCommitProp
Dan J Williams19100.00%1100.00%
Total19100.00%1100.00%


static __init int register_e820_pmem(void) { struct platform_device *pdev; int rc; rc = walk_iomem_res_desc(IORES_DESC_PERSISTENT_MEMORY_LEGACY, IORESOURCE_MEM, 0, -1, NULL, found); if (rc <= 0) return 0; /* * See drivers/nvdimm/e820.c for the implementation, this is * simply here to trigger the module to load on demand. */ pdev = platform_device_alloc("e820_pmem", -1); return platform_device_add(pdev); }

Contributors

PersonTokensPropCommitsCommitProp
Dan J Williams5285.25%360.00%
Christoph Hellwig711.48%120.00%
Toshi Kani23.28%120.00%
Total61100.00%5100.00%

device_initcall(register_e820_pmem);

Overall Contributors

PersonTokensPropCommitsCommitProp
Dan J Williams7679.17%342.86%
Christoph Hellwig1616.67%114.29%
Toshi Kani22.08%114.29%
Greg Kroah-Hartman11.04%114.29%
Paul Gortmaker11.04%114.29%
Total96100.00%7100.00%
Directory: arch/x86/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.