Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.30-rc6 43 lines 1.4 kB view raw
1/* MTD backing device capabilities 2 * 3 * Copyright © 2006 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 9 * 2 of the License, or (at your option) any later version. 10 */ 11 12#include <linux/backing-dev.h> 13#include <linux/mtd/mtd.h> 14#include "internal.h" 15 16/* 17 * backing device capabilities for non-mappable devices (such as NAND flash) 18 * - permits private mappings, copies are taken of the data 19 */ 20struct backing_dev_info mtd_bdi_unmappable = { 21 .capabilities = BDI_CAP_MAP_COPY, 22}; 23 24/* 25 * backing device capabilities for R/O mappable devices (such as ROM) 26 * - permits private mappings, copies are taken of the data 27 * - permits non-writable shared mappings 28 */ 29struct backing_dev_info mtd_bdi_ro_mappable = { 30 .capabilities = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT | 31 BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP), 32}; 33 34/* 35 * backing device capabilities for writable mappable devices (such as RAM) 36 * - permits private mappings, copies are taken of the data 37 * - permits non-writable shared mappings 38 */ 39struct backing_dev_info mtd_bdi_rw_mappable = { 40 .capabilities = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT | 41 BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP | 42 BDI_CAP_WRITE_MAP), 43};