VxWorks
Kernel Programmer's Guide, 6.9
xvi
12.12.1 Creating Network Devices ............................................................................... 316
12.12.2 I/O Control Functions ...................................................................................... 316
12.13 Sockets ............................................................................................................................... 316
12.14 Internal I/O System Structure ....................................................................................... 317
12.14.1 Drivers ................................................................................................................ 319
The Driver Table and Installing Drivers ........................................................ 320
Example of Installing a Driver ........................................................................ 320
12.14.2 Devices ................................................................................................................ 321
The Device List and Adding Devices ............................................................. 321
Example of Adding Devices ............................................................................ 322
Deleting Devices ................................................................................................ 322
12.14.3 File Descriptors .................................................................................................. 325
File Descriptor Table ......................................................................................... 325
Example of Opening a File ............................................................................... 325
Example of Reading Data from the File ......................................................... 328
Example of Closing a File ................................................................................. 329
Implementing select( ) ...................................................................................... 329
Cache Coherency ............................................................................................... 332
13 Local File Systems ..................................................................................... 337
13.1 Introduction ...................................................................................................................... 337
13.2 File System Monitor ...................................................................................................... 339
Device Insertion Events .................................................................................... 340
XBD Name Mapping Facility .......................................................................... 341
13.3 Virtual Root File System: VRFS ................................................................................... 341
13.4 Highly Reliable File System: HRFS ............................................................................ 343
13.4.1 Configuring VxWorks for HRFS ..................................................................... 343
13.4.2 Configuring HRFS ............................................................................................ 344
13.4.3 Creating an HRFS File System ....................................................................... 345
Overview of HRFS File System Creation ....................................................... 345
HRFS File System Creation Steps ................................................................... 345
13.4.4 HRFS, ATA, and RAM Disk Examples .......................................................... 346
13.4.5 Optimizing HRFS Performance ...................................................................... 351
13.4.6 Transactional Operations and Commit Policies ......................................... 351
Automatic Commit Policy ............................................................................... 351
High-Speed Commit Policy ............................................................................. 352
Mandatory Commits ......................................................................................... 352
Rollbacks ............................................................................................................. 352
Programmatically Initiating Commits ........................................................... 353
13.4.7 File Access Time Stamps .................................................................................. 353