VxWorks
Kernel Programmer's Guide, 6.8
xvi
File Descriptor Table ......................................................................................... 350
Example of Opening a File ............................................................................... 350
Example of Reading Data from the File ......................................................... 352
Example of Closing a File ................................................................................. 353
Implementing select( ) ...................................................................................... 353
Cache Coherency ............................................................................................... 356
10.11 PCMCIA ............................................................................................................................ 359
10.12 Peripheral Component Interconnect: PCI .................................................................. 359
11 Local File Systems ..................................................................................... 361
11.1 Introduction ...................................................................................................................... 361
11.2 File System Monitor ...................................................................................................... 363
Device Insertion Events .................................................................................... 364
XBD Name Mapping Facility .......................................................................... 365
11.3 Virtual Root File System: VRFS ................................................................................... 365
11.4 Highly Reliable File System: HRFS ............................................................................ 366
11.4.1 Configuring VxWorks for HRFS ..................................................................... 367
11.4.2 Configuring HRFS ............................................................................................ 368
11.4.3 Creating an HRFS File System ....................................................................... 368
Overview of HRFS File System Creation ....................................................... 369
HRFS File System Creation Steps ................................................................... 369
11.4.4 HRFS, ATA, and RAM Disk Examples .......................................................... 370
11.4.5 Optimizing HRFS Performance ...................................................................... 375
11.4.6 Transactional Operations and Commit Policies ......................................... 375
Automatic Commit Policy ............................................................................... 375
High-Speed Commit Policy ............................................................................. 376
Mandatory Commits ......................................................................................... 376
Rollbacks ............................................................................................................. 376
Programmatically Initiating Commits ........................................................... 377
11.4.7 File Access Time Stamps .................................................................................. 377
11.4.8 Maximum Number of Files and Directories ................................................. 377
11.4.9 Working with Directories ................................................................................ 377
Creating Subdirectories .................................................................................... 377
Removing Subdirectories ................................................................................. 378
Reading Directory Entries ................................................................................ 378
11.4.10 Working with Files ............................................................................................ 378
File I/O Routines ............................................................................................... 378
File Linking and Unlinking ............................................................................. 378
File Permissions ................................................................................................. 379
11.4.11 I/O Control Functions Supported by HRFS ................................................. 379