亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cbiolib.c

?? vxworks操作系統(tǒng)的文件系統(tǒng)部分原代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* cbioLib.c - Cached Block I/O library *//* Copyright 1999-2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01y,03jun02,jkf  fixed SPR#78162, cbioLib has INTERNAL comment visable01x,29apr02,jkf  SPR#76013, blkWrapBlkRWbuf() shall semGive what it semTake's,                 also removed cbioWrapBlkDev check for bytesPerBlk since the                  media may not be present at cdromFs mount time; improved                  error message to mention the BLK_DEV * value that fails.01w,14jan02,jkf  SPR#72533, added cbioRdyChk(), which is used in cbioShow().01v,12dec01,jkf  fixing diab build warnings.01u,10dec01,jkf  SPR#72039, cbioShow should use strcmp.01t,09dec01,jkf  SPR#71637, fix for SPR#68387 caused ready changed bugs.01s,15nov01,jkf  SPR#71720, avoid unaligned pointer access.01r,20sep01,jkf  SPR#69031, common code for both AE & 5.x.01q,01aug01,jyo  Fixed SPR#68387: readyChanged bit is not correctly checked to                 verify the change in the media, SPR#69411: Change in media's                 readyChanged bit is not being propogated appropriately to the                 layers above.01p,14jun01,jyo  Fixed SPR#67729 and SPR#68150: Media's state information is                 read correctly from the lowest layer and tidied the code to                 use the new member subDev instead of pDc of CBIO_DEV                 structure.01o,08sep00,nrj  Fixed SPR#33934,33925: avoid using cbioBlkDevPtrLimit01n,19apr00,dat  doc fixup01m,07dec99,jkf  changed OBJ_CORE to HANDLE, KHEAP_ALLOC, made mode int                 changes for cbioDevVerify(), cbioWrapBlkDev().01l,15sep99,jkf  changes for public CBIO API.01k,31jul99,jkf  T2 merge, tidiness, & spelling.01j,14dec98,lrn  make pointer range limit configurable (SPR#23977)01i,22nov98,lrn  added statusChk verification after reset01h,04nov98,lrn  refined error handling with Floppy01g,29oct98,lrn  fixed BLK_DEV replacement for PCMCIA, w/ CBIO_RESET 3rd arg   01f,20oct98,lrn  removed the previous mode because of non-ATA block drivers.01e,20oct98,lrn  added capacity adjustment to work around ATA driver bug01d,20oct98,lrn  fixed SPR#22553, SPR#2273101c,10sep98,lrn  add CBIO_RESET for blk dev replacement, add error handling01b,03sep98,lrn  add block device wrapper01a,15jan98,lrn  written, preliminary*//*DESCRIPTIONThis library provides the Cached Block Input Output Application Programmers Interface (CBIO API).  Libraries such as dosFsLib, rawFsLib, and usrFdiskPartLib use the CBIO API for I/O operations to underlying devices.This library also provides generic services for CBIO modules.  The libraries dpartCbio, dcacheCbio, and ramDiskCbio are examples of CBIO modules that make use of these generic services.This library also provides a CBIO module that converts blkIo driver BLK_DEV (blkIo.h) interface into CBIO API compliant interface usingminimal memory overhead.  This lean module is known as the basic BLK_DEV to CBIO wrapper module.   CBIO MODULES AND DEVICESA CBIO module contains code for supporting CBIO devices.  The libraries cbioLib, dcacheCbio, dpartCbio, and ramDiskCbio are examples of CBIO modules.   A CBIO device is a software layer that provide its master controlof I/O to it subordinate.  CBIO device layers typicaly reside logically below a file system and above a storage device.  CBIO devices conform to the CBIO API on their master (upper) interface.CBIO modules provide a CBIO device creation routine used to instantiate a CBIO device.  The CBIO modules device creation routine returns a CBIO_DEV_ID handle.  The CBIO_DEV_ID handle is used to uniquely identify the CBIO device layer instance.  The user of the CBIO device passes this handle to the CBIO API routines when accessing the device.The libraries dosFsLib, rawFsLib, and usrFdiskPartLib are considered users of CBIO devices because they use the CBIO API on their subordinate(lower) interface.  They do not conform to the CBIO API on their master interface, therefore they are not CBIO modules.  They are users of CBIO devices and always reside above CBIO devices in the logical stack.TYPES OF CBIO DEVICES A "CBIO to CBIO device" uses the CBIO API for both its master and its subordinate interface.  Typically, some type of module specific I/O processing occurs during the interface between the master and subordinatelayers.  The libraries dpartCbio and dcacheCbio are examples of CBIO to CBIO devices.   CBIO to CBIO device layers are stackable.   Care should be taken to assemble the stack properly.  Refer to each modules reference manual entry for recommendations about the optimum stacking order. A "CBIO API device driver" is a device driver which provides the CBIOAPI as the interface between the hardware and its upper layer.  The ramDiskCbio.c RAM DISK driver is an example of a simple CBIO API device driver.A "basic BLK_DEV to CBIO wrapper device" wraps a subordinate BLK_DEV layer with a CBIO API compatible layer.  The wrapper is provided via the cbioWrapBlkDev() function.The logical layers of a typical system using a CBIO RAM DISK appear:.CS         +--------------------+         | Application module |          +--------------------+ <-- read(), write(), ioctl()                   |         +--------------------+         | VxWorks I/O System |          +--------------------+ <-- IOS layer iosRead,Write,ioctl                   |                (iosDrvInstall rtns from dosFsLib)      +--------------- -----------+      | File System (DOSFS/RAWFS) |       +---------------------------+ <-- CBIO API (cbioBlkRW, cbioIoctl, etc.)                   |+----------------------------------------------+| CBIO API device driver module (ramDiskCbio.c)|+----------------------------------------------+                   |              +----------+              | Hardware |              +----------+.CEThe logical layers of a typical system with a fixed diskusing CBIO partitioning layer and a CBIO caching layer appears:.CS            +--------------------+            | Application module |            +--------------------+ <-- read(), write(), ioctl()                      |            +-------------------+            | VxWorks IO System |            +-------------------+ <-- IOS layer Read,Write, ioctl                      |               (iosDrvInstall rtns from dosFsLib)         +---------------------------+         | File System (DOSFS/RAWFS) |         +---------------------------+ <-- CBIO API RTNS (cbioLib.h)                      |      +---------------------------------+      | CBIO to CBIO device (dpartCbio) |      +---------------------------------+ <-- CBIO API RTNS                      |     +----------------------------------+     | CBIO to CBIO device (dcacheCbio) |     +----------------------------------+ <-- CBIO API RTNS                       |  +------------------------------------------------+  | basic CBIO to BLK_DEV wrapper device (cbioLib) |  +------------------------------------------------+ <-- BLK_DEV (blkIo.h)                      |+-------------------------------------------------------+| BLK_DEV API device driver. scsiLib, ataDrv, fdDrv,etc | +-------------------------------------------------------+                      |          +-------------------------+          | Storage Device Hardware |          +-------------------------+.CEPUBLIC CBIO APIThe CBIO API provides user access to CBIO devices.  Users of CBIO devices are typically either file systems or other CBIO devices.  The CBIO API is exposed via cbioLib.h.  Users of CBIO modules include the cbioLib.h header file.  The libraries dosFsLib, dosFsFat, dosVDirLib, dosDirOldLib, usrFdiskPartLib, and rawFsLib all use the CBIO API to access CBIO modules beneath them.    The following functions make up the public CBIO API:.IPcbioLibInit() - Library initialization routine .IPcbioBlkRW() - Transfer blocks (sectors) from/to a memory buffer.IPcbioBytesRW() - Transfer bytes from/to a memory buffer.IPcbioBlkCopy() - Copy directly from block to block (sector to sector).IPcbioIoctl() - Perform I/O control operations on the CBIO device.IPcbioModeGet() - Get the CBIO device mode (O_RDONLY, O_WRONLY, or O_RDWR).IPcbioModeSet() - Set the CBIO device mode (O_RDONLY, O_WRONLY, or O_RDWR).IPcbioRdyChgdGet() - Determine the CBIO device ready status state.IPcbioRdyChgdSet() - Force a change in the CBIO device ready status state .IPcbioLock() - Obtain exclusive ownership of the CBIO device .IPcbioUnlock() - Release exclusive ownership of the CBIO device .IPcbioParamsGet() - Fill a CBIO_PARAMS structure with data from the CBIO device.IPcbioDevVerify() - Verify valid CBIO device .IPcbioWrapBlkDev() - Create CBIO wrapper atop a BLK_DEV .IPcbioShow() - Display information about a CBIO device.LPThese CBIO API functions (except cbioLibInit()) are passed a CBIO_DEV_ID handle in the first argument.   This handle (obtained from the subordinate CBIO modules device creation routine) is used by the routine to verify thethe CBIO device is valid and then to perform the requested operationon the specific CBIO device.When the CBIO_DEV_ID passed to the CBIO API routine is not a valid CBIO handle, ERROR will be returned with the errno set to S_cbioLib_INVALID_CBIO_DEV_ID (cbioLib.h).   Refer to the individual manual entries for each function for a complete description.THE BASIC CBIO TO BLK_DEV WRAPPER MODULEThe basic CBIO to BLK_DEV wrapper is a minimized disk cache using simplified algorithms.   It is used to convert a legacy BLK_DEV device into as CBIO device.  It may be used standalone with solid state disks which do not have mechanical seek and rotational latency delays, such flash cards.  It may also be used in conjunction withthe dpartCbio and dcacheCbio libraries.  The DOS file system dosFsDevCreate routine will call cbioWrapBlkDev() internally, so the file system may be installed directly on top of a block driver BLK_DEVor it can be used with cache and partitioning support. The function cbioWrapBlkDev() is used to create the CBIO wrapper atopa BLK_DEV device.The functions dcacheDevCreate and dpartDevCreate also both interally use cbioDevVerify() and cbioWrapBlkDev() to either stack the new CBIO device atop a validated CBIO device or to create a basic CBIO to BLK_DEV wrapper as needed.  The user typically never needs to manually invoke the cbioWrapBlkDev() or cbioDevVerify() functions.Please note that the basic CBIO BLK_DEV wrapper is inappropriate for rotational media without the disk caching layer.  The services provided by the dcacheCbio module are more appropriate for use on rotational disk devices and will yeild superior performancewhen used.SEE ALSO.I "VxWorks Programmers Guide: I/O System"INCLUDE FILEScbioLib.hINTERNALCBIO module internal implementation detailsThis section describes information concerning CBIO modules themselves.Users of CBIO modules use only the public CBIO API.  It is not recommend that the information presented in this section be used to circumvent the public CBIO API.  All the private data structures presented herein are private and are indeed subject to change without notice.Refer to the source file src/usr/ramDiskCbio.c for an implementation example of a CBIO module.  The CBIO_DEV structure (PRIVATE)The common fundamental component of every CBIO device is its CBIO_DEV structure.   The CBIO_DEV_ID is a pointer to a CBIO_DEV structure.  The CBIO_DEV is defined in the WRS private cbioLibP.h header file.Every instance of a CBIO device has its own CBIO_DEV structure.Every CBIO module has code for creating a CBIO device.  This codereturns a pointer to the CBIO_DEV structure, ie a CBIO_DEV_ID handle.A CBIO_DEV structure contains the following members:VxWorks objects.CS    HANDLE	cbioHandle;.CEThis is used for handle verification of the CBIO device.  See also handleLibP.h..CS    SEMAPHORE	cbioMutex;		.CEThis is the semaphore provided by semMLib which will be used provide mutual exclusion for the CBIO device.  Functions.CS    CBIO_FUNCS * pFuncs;.CEThis member of the CBIO_DEV structure is a pointer to a CBIO_FUNCS structure.  The CBIO_FUNCS structure is alsoa private data structure.   The CBIO_FUNCS structurecontains the following members:.CS    STATUS	(* cbioDevBlkRW).CEAddress of the block (sector) read and write routine for the CBIO device..CS    STATUS	(* cbioDevBytesRW)	.CEAddress of the byte oriented read and write routine for the CBIO device..CS    STATUS	(* cbioDevBlkCopy)	.CEAddress of the block to block copy routine for the CBIO device..CS    STATUS	(* cbioDevIoctl)		.CEAddress of the ioctl() routine for the CBIO device.One CBIO_FUNCS structure is typically statically allocatedfor each CBIO module.  Refer to ramDiskCbio.c for an example.Attributes.CS    char *	cbioDesc;	.CEThis member of the CBIO_DEV structure is a pointer to a printable descriptive character string for the CBIO device..CS    short	cbioMode;		.CEIndicates the access permissions to the CBIO device. Valid modes are O_RDONLY, O_WRONLY, and O_RDWR..CS    BOOL	readyChanged;.CETRUE if the device ready status has changed, and the device needs to be remounted (disk insertion).  FALSE if the device ready status has not changed..CS    CBIO_PARAMS     cbioParams;.CEThe next CBIO_DEV member is a CBIO_PARAMS (cbioLib.h) structure.   This contains physical information about the device.  The members of the CBIO_PARAMS structure are:.CS    BOOL	cbioParams.cbioRemovable;		.CETRUE if the device is removable, FALSE if the device is not removable..CS    block_t	cbioParams.nBlocks;		.CETotal number of blocks on this CBIO device.CS    size_t	bytesPerBlk;	.CEThe number of bytes in a block.  512 is a typical value..CS    size_t	blockOffset;		.CEThe number of blocks offset from block zero on the subordinate device. .CS    short	cbioParams.blocksPerTrack;	.CEThe number of blocks per track on this device..CS    short	nHeads;		.CEThe number of heads on this device..CS    short	retryCnt;	.CEA counter indicating the total number of retries thathave occurred since creating this device..CS    block_t	cbioParams.lastErrBlk;	.CEThe block number of the last error that occurred..CS    int		lastErrno;		.CEThe error code of the last encountered error.Implementation defined CBIO_DEV attributes.CS    caddr_t	cbioMemBase;	    size_t	cbioMemSize;		.CEThese represent the base address and size of any memory pool supplied to the CBIO module..CS    u_long	cbioPriv0;		/@ Implementation defined @/    u_long	cbioPriv1;		/@ Implementation defined @/    u_long	cbioPriv2;		/@ Implementation defined @/    u_long	cbioPriv3;		/@ Implementation defined @/    u_long	cbioPriv4;		/@ Implementation defined @/    u_long	cbioPriv5;		/@ Implementation defined @/    u_long	cbioPriv6;		/@ Implementation defined @/    u_long	cbioPriv7;		/@ Implementation defined @/    CBIO_DEV_EXTRA * pDc ;		/@ Implementation defined structure @/.CEThese fields are implementation defined.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久99精品久久| 一区二区三区 在线观看视频| 波多野洁衣一区| 午夜视频久久久久久| 久久久久久久综合色一本| 欧美日韩在线三级| 风间由美性色一区二区三区| 日韩国产欧美视频| 亚洲免费大片在线观看| 久久精品视频一区二区| 欧美精选一区二区| 一本色道久久综合狠狠躁的推荐| 狠狠色丁香久久婷婷综| 三级亚洲高清视频| 亚洲女同ⅹxx女同tv| 久久久久久久久蜜桃| 91精品国产色综合久久不卡电影| 91原创在线视频| 国产成人在线电影| 精品在线播放午夜| 日韩中文字幕亚洲一区二区va在线| 亚洲欧洲日产国码二区| 久久色中文字幕| 日韩一二三四区| 欧美日韩国产高清一区| 91国偷自产一区二区使用方法| 国产乱妇无码大片在线观看| 蜜臀av性久久久久蜜臀aⅴ | 91在线你懂得| 国产白丝精品91爽爽久久| 久久激情五月婷婷| 奇米影视一区二区三区| 五月天一区二区三区| 一区二区三区 在线观看视频| 国产精品乱码一区二区三区软件| 国产日韩视频一区二区三区| 欧美精品一区二区蜜臀亚洲| 欧美成人video| 日韩三级免费观看| 欧美电影免费观看高清完整版在线 | 色视频一区二区| 成人国产免费视频| 丁香婷婷综合激情五月色| 久久成人久久鬼色| 蜜桃视频在线观看一区二区| 日本伊人午夜精品| 免费久久精品视频| 蜜桃视频一区二区三区在线观看| 同产精品九九九| 亚洲成人在线免费| 日韩电影免费在线观看网站| 人人狠狠综合久久亚洲| 蜜桃一区二区三区在线观看| 久久爱www久久做| 国模大尺度一区二区三区| 精品写真视频在线观看 | 国产成人精品午夜视频免费| 精品亚洲成a人在线观看| 国产精品亚洲视频| fc2成人免费人成在线观看播放| 91一区二区在线| 欧美午夜视频网站| 日韩午夜在线影院| 国产校园另类小说区| 国产精品久久看| 亚洲欧美激情插| 日韩电影在线看| 高清shemale亚洲人妖| av成人免费在线观看| 91成人看片片| 日韩欧美区一区二| 欧美国产成人精品| 亚洲午夜久久久| 久久精品国产精品亚洲精品| 国产成人av影院| 欧美三级一区二区| 久久久美女毛片| 亚洲精品国产无天堂网2021| 免费观看日韩av| 白白色亚洲国产精品| 欧美日韩在线一区二区| 国产三级精品视频| 亚洲一区二区三区国产| 激情图区综合网| 色综合久久天天| 精品精品欲导航| 亚洲女厕所小便bbb| 六月丁香婷婷色狠狠久久| 99久久久精品免费观看国产蜜| 在线观看网站黄不卡| 国产亚洲一二三区| 日精品一区二区| 色综合视频一区二区三区高清| 日韩精品在线看片z| 一区二区久久久| 国产高清精品在线| 5858s免费视频成人| 1024国产精品| 国产资源在线一区| 在线不卡中文字幕播放| 中文字幕在线免费不卡| 久久成人av少妇免费| 欧美色爱综合网| 国产精品成人免费精品自在线观看| 日韩vs国产vs欧美| 日本精品一区二区三区高清| 欧美国产日产图区| 久久69国产一区二区蜜臀| 91黄色小视频| 亚洲欧洲日产国产综合网| 精品一区二区三区久久| 欧美日韩三级一区| 亚洲美女屁股眼交3| 国产suv一区二区三区88区| 欧美一个色资源| 亚洲一区二区五区| 91女人视频在线观看| 久久久99精品免费观看不卡| 麻豆精品国产91久久久久久| 欧美日韩国产免费一区二区| 亚洲视频一二区| 懂色av一区二区三区免费观看| 日韩午夜精品电影| 日本欧美韩国一区三区| 欧美日韩午夜在线| 亚洲一区二区3| 欧美在线色视频| 一卡二卡三卡日韩欧美| 色综合婷婷久久| 亚洲欧美日韩精品久久久久| 大尺度一区二区| 亚洲国产精品成人综合| 国产精品一区二区无线| 久久综合色婷婷| 精品一区二区三区日韩| 日韩午夜激情电影| 免费不卡在线视频| 日韩三级高清在线| 国产一区二区网址| 久久日韩精品一区二区五区| 激情五月婷婷综合| 久久久久国产精品麻豆| 国产精品996| 国产精品久久久久aaaa| www.综合网.com| 亚洲精品一二三区| 在线精品国精品国产尤物884a| 一区二区三区高清不卡| 在线国产电影不卡| 亚洲va欧美va天堂v国产综合| 欧美色图激情小说| 日韩精品电影一区亚洲| 日韩欧美黄色影院| 国产精品456| 国产精品国产三级国产专播品爱网| 成人激情免费网站| 亚洲伦理在线精品| 欧美三级日韩三级| 麻豆专区一区二区三区四区五区| 精品日韩99亚洲| 成人亚洲一区二区一| 亚洲黄色av一区| 777久久久精品| 国产成人精品亚洲777人妖| 亚洲欧美另类在线| 欧美精品tushy高清| 国产乱码字幕精品高清av| 亚洲人123区| 欧美一级爆毛片| eeuss鲁一区二区三区| 图片区小说区国产精品视频| 精品理论电影在线| 99精品欧美一区二区三区综合在线| 亚洲综合另类小说| 日韩精品一区在线| av不卡一区二区三区| 日本不卡一区二区| 欧美国产禁国产网站cc| 欧美美女一区二区在线观看| 国产一区二区三区四区五区美女 | 91麻豆精品国产91久久久资源速度| 麻豆精品国产传媒mv男同| 国产精品进线69影院| 69堂亚洲精品首页| 国产不卡视频在线观看| 亚洲aaa精品| 国产精品久久看| 91精品国产福利| 91在线观看下载| 久久爱另类一区二区小说| 亚洲精品成人少妇| 精品国产乱码91久久久久久网站| 91看片淫黄大片一级| 国产在线不卡一卡二卡三卡四卡| 亚洲精品国产品国语在线app| 久久久久久久性| 911国产精品| 色综合久久六月婷婷中文字幕| 国产一区二区三区免费播放| 亚洲午夜av在线|