⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ramdisk.h

📁 开放源码的嵌入式开发环境
💻 H
字号:
/** * @file rtems/ramdisk.h * RAM disk block device implementation *//* * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia * Author: Victor V. Vengerov <vvv@oktet.ru> * * @(#) $Id: ramdisk.h,v 1.4 2005/02/17 07:24:46 ralf Exp $ */#ifndef _RTEMS_RAMDISK_H#define _RTEMS_RAMDISK_H#ifdef __cplusplusextern "C" {#endif#include <rtems.h>#include "rtems/blkdev.h"/* RAM disk configuration table entry */typedef struct rtems_ramdisk_config {    int   block_size; /* RAM disk block size */    int   block_num;  /* Number of blocks on this RAM disk */    void *location;   /* RAM disk permanent location (out of RTEMS controlled                         memory), or NULL if RAM disk memory should be                         allocated dynamically */} rtems_ramdisk_config;/* If application want to use RAM disk, it should specify configuration of * available RAM disks. * The following is definitions for RAM disk configuration table */extern rtems_ramdisk_config rtems_ramdisk_configuration[];extern size_t rtems_ramdisk_configuration_size;/* ramdisk_initialize -- *     RAM disk driver initialization entry point. */rtems_device_driverramdisk_initialize(    rtems_device_major_number major,    rtems_device_minor_number minor,    void *arg);#define RAMDISK_DRIVER_TABLE_ENTRY \    { ramdisk_initialize, GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES }#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -