ramdisk.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 65 行

H
65
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Fri Nov 11 01:07:19 2005
 *
 *******************************************************************/
/* ramdisk.c -- RAM disk block device implementation
 *
 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
 * Author: Victor V. Vengerov <vvv@oktet.ru>
 *
 * @(#) ramdisk.h,v 1.1 2002/02/28 20:39:54 joel Exp
 */

#ifndef __AVFS_LIBBLOCK_RAMDISK_H__
#define __AVFS_LIBBLOCK_RAMDISK_H__

#ifdef __cplusplus
extern "C" {
#endif
#if 0
//porting

#include <avfs.h>
#endif
#include "./blkdev.h"

/* RAM disk configuration table entry */
typedef struct avfs_ramdisk_config {
    int   block_size; /* RAM disk block size, byte */
    int   block_num;  /* Number of blocks on this RAM disk */
    void *location;   /* RAM disk permanent location (out of AVFS controlled
                         memory), or NULL if RAM disk memory should be
                         allocated dynamically */
} avfs_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 avfs_ramdisk_config avfs_ramdisk_configuration[];
extern int avfs_ramdisk_configuration_size;

/* ramdisk_initialize --
 *     RAM disk driver initialization entry point.
 */
avfs_device_driver
ramdisk_initialize(
    avfs_device_major_number major,
    avfs_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 + =
减小字号Ctrl + -
显示快捷键?