cregit-Linux how code gets into the kernel

Release 4.11 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 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%350.00%
Christoph Hellwig69.84%116.67%
Toshi Kani34.92%233.33%
Total61100.00%6100.00%

device_initcall(register_e820_pmem);

Overall Contributors

PersonTokensPropCommitsCommitProp
Dan J Williams7680.00%342.86%
Christoph Hellwig1515.79%114.29%
Toshi Kani33.16%228.57%
Paul 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.
Created with cregit.