參數(shù)資料
型號: HIF_IOCTL
英文描述: Using Slow Peripherals with 29K Family Processors Using the HIF ioctl Service for Nonblocking Reads
中文描述: 使用29K型系列處理器慢周邊使用非阻塞讀取誘導(dǎo)因子的ioctl服務(wù)
文件頁數(shù): 1/3頁
文件大?。?/td> 61K
代理商: HIF_IOCTL
PID No. 18413B
1 of 3
AMD
29K
Family
Technical
Bulletin
EPD Systems Engineering
Using the HIF ioctl Service
for Nonblocking Reads
March 20, 1995
Purpose
The Host Interface (HIF) kernel of Release 3.0 or
later of the MiniMON29K
product adds support for
nonblocking read operations. This new feature allows
application programs to continue processing while
waiting for input data to be transferred. (To use this
feature, MiniMON29K Release 3.0 or later must be
loaded on both the target and the host.)
This bulletin shows example code that demonstrates
how a nonblocking read can be used to create an
interactive menu that allows subsequent processing to
continue while waiting for user input.
Affected Product
The information in this bulletin affects the following
product:
Product
MiniMON29K
Release
3.0 or later
The Problem
The default input mode used by the HIF kernel of the
MiniMON29K product is COOKED (0x0000), which
blocks (suspends) the application program issuing a
read
operation from the standard input device
(terminal) until the input data has been transferred.
While blocked mode may be effective for some
applications, it makes it difficult to implement and
debug interactive menu-driven applications that
require processing to continue while waiting for user
input.
The Solution
The HIF kernel of the MiniMON29K Release 3.0 (or
later) product implements nonblocking read support
for standard input devices (terminals). Using the HIF
ioctl
service, the input mode of the standard input
device can be changed from COOKED to NBLOCK
mode, which allows the application program to
continue processing while waiting for input data to be
transferred.
The HIF ioctl Service
The HIF
ioctl
service establishes the operation mode
of a specified file or device. It is intended to be
applied primarily to terminal-like devices; however,
certain modes apply to mass-storage files or to other
related input/output devices.
In COOKED (0x0000) mode (the default input
mode), when a
read
operation for a terminal-like
device is issued by the application program, the
kernel blocks (suspends) any further execution of the
application program until the data has been
transferred. Using the HIF
ioctl
service, the input
mode of the standard input device can be set to
NBLOCK (0x0010) mode, which specifies that
subsequent read operations be executed without
suspending (blocking) the application program
issuing the
read
request.
The HIF read Service
After setting standard input to NBLOCK mode, a HIF
read
operation on the standard input device returns
immediately to the application program. The return
value of the
read
service contains the number of
characters currently available, or –1 if none are
available. The application program examines the
return value from the
read
service to determine if any
input data is available. If the return value is –1, the
application program continues other processing while
waiting for the input data.
Example Code
Following is a short code example showing how the
technique explained above can be used for the
creation of an interactive menu. The code in boldface
highlights the use of the HIF
ioctl
service.
相關(guān)PDF資料
PDF描述
HIF_SPEC EZ-030 Demonstration Board Theory of Operation Host Interface (HIF) Specification
HIGHCURRENTSWITCHINGAPPLICATION (286.88 k)
DC-DCCONVERTERANDMOTORDRIVEAPPLICATIONS (286.88 k)
HIGHVOLTAGECAPACITORS(DATASHEETS) Ceramic Capacitors. 1000 V-5000 V
HIGHVOLTAGECERAMICCAPACITORS(GENERALINFO) Ceramic Capacitors. 1000 V-5000 V
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HIFLEX PRESS HHP502 功能描述:手工工具 Press Tool FX2 series RoHS:否 制造商:Molex 產(chǎn)品:Extraction Tools 類型: 描述/功能:Extraction tool
HI-FLEX-HHP502 制造商:Hirose 功能描述:550-0082-2-00 EACH 制造商:Hirose 功能描述:HI-FLEX-HHP502
HI-FLEX-HHP502(61) 功能描述:手工工具 HI FLEX CONN PRESS HT 440MM W 160MM RoHS:否 制造商:Molex 產(chǎn)品:Extraction Tools 類型: 描述/功能:Extraction tool
HI-FLEX-HHP502(62) 功能描述:手工工具 HI FLEX CONN PRESS HT 440MM W 160MM RoHS:否 制造商:Molex 產(chǎn)品:Extraction Tools 類型: 描述/功能:Extraction tool