cregit-Linux how code gets into the kernel

Release 4.10 arch/x86/kernel/pmem.c

Directory: arch/x86/kernel
/*
 * 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 williamsdan 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 williamsdan williams5285.25%350.00%
christoph hellwigchristoph hellwig69.84%116.67%
toshi kanitoshi kani34.92%233.33%
Total61100.00%6100.00%

device_initcall(register_e820_pmem);

Overall Contributors

PersonTokensPropCommitsCommitProp
dan williamsdan williams7680.00%342.86%
christoph hellwigchristoph hellwig1515.79%114.29%
toshi kanitoshi kani33.16%228.57%
paul gortmakerpaul gortmaker11.05%114.29%
Total95100.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.