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

📄 device.h

📁 linux 的引导程序源码The Microsoft&reg Windows&reg Software Development Kit (SDK) provides the documentation
💻 H
字号:
/* device.h  -  Device access *//* Copyright 1992-1996 Werner Almesberger. See file COPYING for details. */#ifndef DEVICE_H#define DEVICE_H#include <sys/stat.h>typedef struct {    int fd;    struct stat st;    char *name;    int delete;} DEVICE;int dev_open(DEVICE *dev,int number,int flags);/* Searches /dev for a block device with the specified number. If no device   can be found, a temporary device is created. The device is opened with   the specified access mode and the file descriptor is returned. If flags   are -1, the device is not opened. */void dev_close(DEVICE *dev);/* Closes a device that has previously been opened by dev_open. If the device   had to be created, it is removed now. */void preload_dev_cache(void);/* Preloads the device number to name cache. */#endif

⌨️ 快捷键说明

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