VxWorks programmer's Guide

Source: Internet
Author: User
Tags control characters posix name database

Free:

Https://sites.google.com/a/2beanet.co.cc/2beanet/

The book is one of the VxWorks developer guide books. It is translated according to Wind River's technical document "VxWorks programmer's Guide.
The main content includes: introduction to VxWorks, basic knowledge of operating system, POSIX standard interface, input/output interface technology, use of local file system, target debugging tool, C ++ development technology, flash drive Design and Application, vxdcom application, distributed message queue, Standard Storage object, virtual memory interface, and so on.
This book provides a smooth and clear language and detailed content. It is mainly intended for embedded system developers who are engaged in Operating Systems Based on the VxWorks operating system, it can be used as a guide to understand VxWorks and apply it to development projects.

Chapter 2 Introduction
1.1 Summary
1.2 related file resources
1.3 configure and establish VxWorks
1.4 Wind River code conventions
1.5 conventions
Chapter 4 Basic Operating System
2.1 Introduction
2.2 VxWorks task
2.2.1 multi-task
2.2.2 task status change
2.2.3 wind Task Scheduling
2.2.4 task control
2.2.5 task extension Functions
2.2.6 task error status: errno
2.2.7 handle task exceptions
2.2.8 share code and re-import
2.2.9 VxWorks operating system task
2.3 inter-Task Communication
2.3.1 shared data structure
2.3.2 mutex
2.3.3 semaphores
2.3.4 Message Queue
2.3.5 MPs queue
2.3.6 network communication between tasks
2.3.7 Signal
2.4 VxWorks event
2.4.1 PSOs event
2.4.2 VxWorks event
2. 4.3 API comparison
2.5 watchdog timer
2.6 service interruption code: service interruption program
2.6.1 interrupt handling Connection Program
2.6.2 interrupt Stack
2.6.3 write and debug interrupt service programs
2.6.4 special restrictions on Service Interruption
2.6.5 interrupt level exception
2.6.6 retain high Interrupt Level
2.6.7 additional restrictions on service interruption at the high Interrupt Level
2.6.8 interrupt and task communication
Chapter 4 POSIX standard interfaces
3.1 Introduction
3.2 POSIX clock and Timer
3.3 POSIX Memory Lock Interface
3.4 POSIX thread
3.4.1 POSIX thread attributes
3.4.2 private thread data
3.4.3 thread Cancellation
3.5 POSIX scheduling Interface
3.5.1 comparison of POSIX and wind Scheduling Methods
3.5.2 obtain and set the POSIX task priority
3.5.3 obtain and display the current scheduling policy
3.5.4 get scheduling parameters: Priority limit and time slice
3.6 POSIX semaphore
3.6.1 comparison of POSIX and wind semaphores
3.6.2 use of unnamed semaphores
3.6.3 use of named semaphores
3.7 POSIX mutexes and condition Variables
3.8 POSIX Message Queue
3.8.1 comparison between POSIX and wind message queues
3.8.2 POSIX Message Queue attributes
3.8.3 Display message queue attributes
3.8.4 use message queue for communication
3.8.5 a notification task has a message waiting
3.9 POSIX queue Signal
Chapter 4 Input/Output System
4.1 Introduction
4.2 files, devices, and drivers
4.2.1 file name and default device type
4.3 Basic I/O interfaces
4.3.1 file descriptor
4.3.2 standard input device, standard output device, and standard error output device
4.3.3 open and close a file
4.3.4 create and delete files
4.3.5 read and write operations
4.3.6 file Truncation
4.3.7 I/O Control Operations
4.3.8 Multifile descriptor-based pending operations: Selection
4.4 buffer I/O device: stdio
4.4.1 use stdio Devices
4.4.2 standard input device, standard output device, and standard error output device
4.5 other I/O formatting operations
4.5.1 special case: printf (), sprintf () and sscanf () Functions
4.5.2 other functions: printerr () and fdprintf () Functions
4.5.3 information record
4.6 asynchronous input/output operations
4.6.1 POSIX standard asynchronous input/output program
4.6.2 asynchronous input/output Operation Control Block
4.6.3 use Asynchronous input/output operations
4.7 devices in the VxWorks Operating System
4.7.1 serial I/O devices (terminals and Pseudo Terminal devices)
4.7.2 MPs queue
4.7.3 pseudo-storage device
4.7.4 Network File System (NFS) Devices
4.7.5 non-NFS network devices
4.7.6 cbio Interface
4.7.7 access devices
4.7.8 socket
4.8 differences between the VxWorks operating system and the host operating system I/O system
4.9 Internal Structure
4.9.1 driver
4.9.2 driver
4.9.3 file descriptor
4.9.4 access devices
4.9.5 driver support library
4.10 PCMCIA Interface
4.11 external device interconnect interface: PCI
Chapter 2 local file system
5.1 Introduction
5.2 MS-DOS-compatible file systems: dosfs file systems
5.2.1 create a dosfs File System
5.2.2 configure the User System
5.2.3 initialize the dosfs File System
5.2.4 create a block access device
5.2.5 create a disk high-speed buffer
5.2.6 create and use Disk Partitions
5.2.7 create a dosfs File System Device
5.2.8 format disk volumes
5.2.9 Install Disk volumes
5.2.10 example
5.2.11 perform operations on disks and disk volumes
5.2.12 directory operations
5.2.13 File Operations
5.2.14 how to allocate disk space
5.2.15 consistency between disaster recovery and disk volumes
5.2.16 I/O control functions supported by the dosfslib File
5.3 Start a local dosfs File System Using a SCSI Device
5.4 original file system: rawfs File System
5.4.1 disk Organization
5.4.2 initialize rawfs File System
5.4.3 initialize the device to use rawfs File System
5.4.4 Install Disk volumes
5.4.5 file I/O operations
5.4.6 change Disk
5.4.7 rawfslib file support I/O control functions
5.5 tape file system: tapefs File System
5.5.1 organizational structure in tape
5.5.2 initialize the tapefs File System
5.5.3 install a Tape Volume
5.5.4 file I/O operations
5.5.5 change Disk
5.5.6 I/O control functions supported by the tapefslib File
5.6 CD-ROM File System: cdromfs
5.7 Target Server File System: TSFS
Chapter 4 target machine tools
6, 1 Introduction
6.2 target-based shell
6.2.1 differences between the host and the target machine Shell
6.2.2 configure VxWorks with the target machine Shell
6.2.3 use the help and control characters of the target machine Shell
6.2.4 load and uninstall the target module from the shell of the target machine
6.2.5 debug the shell of the target machine
6.2.6 terminate the program being executed by the shell on the target machine
6.2.7 use remote logon to access the target machine Shell
6.2.8 allocate demangler
6.3 target-based Loaders
6.3.1 configure the VxWorks Loader
6.3.2 target machine-loader API
6.3.3 Summary of Loader options
6.3.4 load the C ++ Module
6.3.5 specify the memory allocation for the loading Module
6.3.6 restrictions on loader Behaviors
6.4 target machine-based symbol table
6.4.1 configure the VxWorks System symbol table
6.4.2 generate an internal system symbol table
6.4.3 generate a downloadable system symbol table
6.4.4 use the VxWorks System symbol table
6.4.5 symbol table Synchronization Based on host and target machines
6.4.6 generate a user symbol table
6.5 show Functions
6.6 FAQs
Chapter 2 C ++ Language Development
7.1 Introduction
7.2 use the C ++ language in the VxWorks System
7.2.1 C language code for implementing C ++ access
7.2.2 Add support components
7.2.3 C ++ aggregator
7.3 initialize and determine static targets
7.3.1 detail (Munch) C ++ application module
7.3.2 interactive call of static constructor and destructor
7.4 use gnu c ++ for programming
7.4.1 template instantiation
7.4.2 Exception Handling
7.4.3 run-time type information
7.4.4 namespaces)
7.5 use Diab C ++ for programming
7.5.1 template instantiation
7.5.2 Exception Handling
7.5.3 run-time type information
7.6 use the C ++ Library
7.7 running Case demonstration
Chapter 2 flash block Device Drivers
8.1 Introduction
8.1.1 select trueffs as the media
8.1.2 trueffs Layer
8.2 build a trueffs-supported system
8.3 select MTD Components
8.4 determine the socket driver
8.5 set up a project
8.5.1 contains file system components
8.5.2 contains Core Components
8.5.3 contains application components
8.5.4 contains MTD Components
8.5.5 Transfer Layer
8.5.6 add socket driver
8.5.7 establish a system project
8.6 device formatting
8.6.1 specified drive letter
8.6.2 format the device
8.7 create a region for compiling the Boot Image
8.7.1 write protection for flash memory
8.7.2 create a startup image region
8.7.3 compile a boot image in Flash
8.8 install the drive
8.9 run shell commands
8.10 write the socket driver
8.10.1 transfer the socket driver stub File
8.10.2 understand socket driver functions
8.11 use flash devices supported by MTD
8.11.1 support for common flash memory interfaces (CFI)
8.11.2 other MTD supported
8.11.3 obtain on-chip disk support
8.12 compile MTD Components
8.12.1 compile MTD recognition functions
8.12.2 compile MTD ing Functions
8.12.3 write MTD read, write, and erase Functions
8.12.4 define MTD as a component
8.12.5 register an identification function
8.13 flash Function
8.13.1 block allocation and data string
8.13.2 read and write operations
8.13.3 erase loop and fragment collection
8.13.4 Optimization Method
8.13.5 fault recovery in trueffs
Chapter 4 vxdcom Application
9,1 Overview
9.2 COM technology Overview
9.2.1 reusability of COM components and software
9.2.2 vxdcom and Real-Time Distributed Technology
9.3 use the wind target Template Library
9.3.1 wotl template category
9.3.2 coclass real template class
9.3.3 lightweight object class template
9.3.4 Single Instance macro
9.4 read wotl-generated code
9.4.1 wotl coclass Definition
9.4.2 macro definition used in the generated file
9.4.3 interface ing
9.5 configure DCOM Performance Parameters
9.6 use the wind IDL Compiler
9.6.1 command line format
9.6.2 generated code
9.6.3 Data Type
9.7 read The IDL file
9.7.1 IDL file structure
9.7.2 define attributes
9.8 added real-time scaling
9.8.1 use the Priority Scheme on VxWorks
9.8.2 configure client priority transfer on Windows
9.8.3 threadpools
9.9 use OPC interface
9.10 write vxdcom servers and client applications
9.10.1 Programming
9.10.2 compile a service program
9.10.3 write client code
9.10.4 ask the server
9.10.5 run the client code
9.11 compare vxdcom and ATL execution
9.11.1 ccomobjectroot
9.11.2 ccomclassfactory
9.11.3 ccomcoclass
9.11.4 ccomobject
9.11.5 ccomptr
9.11.6 ccombstr
9.11.7 vxcombstr
9.11.8 ccom Variant
Chapter 2 distributed information queue
10.1 Introduction
10.2 configure VxWorks with vxfusion
10.3 use vxfusion
10.3.1 system structure of vxfusion
10.3.2 vxfusion Initialization
10.3.3 configure vxfusion
10.3.4 distributed name database
10.3.5 distributed information queue operations
10.3.6 operation group information queue
10.3.7 operation Adapter
10.4 system limitations
10.5 start a node
10.6 messages and messages
10.6.1 comparison of packets and messages
10.6.2 Packet Buffer
10.7 design an adapter
10.7.1 design the network Header
10.7.2 write an initialization program
10.7.3 write a Startup Program
10.7.4 write a sender Program
10.7.5 write an Input Program
10.7.6 write an I/O Control Program
Chapter 4 shared memory objects
11.1 Introduction
11.2 use shared memory objects
11.2.1 name database
11.2.2 shared semaphores
11.2.3 shared Message Queue
11.2.4 shared memory distributor
11.3 internal precautions
11.3.1 System Requirements
11.3.2 rotating Lock Mechanism
11.3.3 Interrupt Delay
11.3.4 Constraints
11.3.5 high-speed cache consistency
11.4 Configuration
11.4.1 shared memory objects and shared memory network drivers
11.4.2 shared memory Zone
11.4.3 initialize the shared memory object package
11.4.4 configuration example
11.4.5 initialization steps
11.5 Fault Detection and Solutions
11.5.1 configuration problems
11.5.2 troubleshooting skills
Chapter 2 virtual memory interface
12.1 Introduction
12.2 basic virtual memory support
12.3 virtual memory configuration
12.4 common applications
12.5 use a procedural MMU
12.5.1 virtual memory Context
12.5.2 private virtual memory
12.5.3 non-high-speed cache storage Zone
12.5.4 non-writable Storage
12.5.5 Fault Detection
12.5.6 issues requiring vigilance

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.