JPH03113662A - Input/output processing system - Google Patents

Input/output processing system

Info

Publication number
JPH03113662A
JPH03113662A JP25458889A JP25458889A JPH03113662A JP H03113662 A JPH03113662 A JP H03113662A JP 25458889 A JP25458889 A JP 25458889A JP 25458889 A JP25458889 A JP 25458889A JP H03113662 A JPH03113662 A JP H03113662A
Authority
JP
Japan
Prior art keywords
input
message
format
information
priority level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25458889A
Other languages
Japanese (ja)
Inventor
Masayuki Kato
雅之 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP25458889A priority Critical patent/JPH03113662A/en
Publication of JPH03113662A publication Critical patent/JPH03113662A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the portability of an application program and to designate the processing priority of respective input/output devices by permitting a program to include a processing which takes out message information stored in a level designated from a reception queue in a priority level. CONSTITUTION:A device initialization part 1 sets the priority level of the input/ output devices and a logical port number in a system conversion table 5 by a request from a process 101. A reception message processing part 3 receives a message from a message conversion part 4 and stores it in the reception queue 2. The message conversion art 4 converts event information received from the device drivers 102-1 to 102-n into the system of the message based on information of the system conversion table 5. Then the program takes out message information stored in the level designated by the priority level from the reception queue 2. Thus, the portability of the program can be improved and the processing priority level of the processing request from the input/output devices can be designated by the program.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はプログラムを実行する計算機に複数の入出力デ
バイスが接続されたシステムにおけるプログラムと入出
力デバイスとの間のデータの入出力を制御する入出力処
理方式に関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention controls data input/output between a program and an input/output device in a system in which a plurality of input/output devices are connected to a computer that executes a program. Concerning input/output processing methods.

(従来の技術) 計算機には、カードリーダ、ラインプリンタ等の入出力
デバイスが接続されている。そして、この入出力デバイ
スのインタフェース(データ形式等)は、一般に、各入
出力デバイスごとに異なる。
(Prior Art) Input/output devices such as card readers and line printers are connected to computers. The interface (data format, etc.) of this input/output device generally differs for each input/output device.

そこで、これらの入出力デバイスとデータの入出力を行
なうアプリケーションプログラムは、各入出力デバイス
のインタフェースに対応した処理を行なっている。また
、複数の入出力デバイスから同時に処理要求が発生した
場合、アプリケーションプログラムは、予め定められた
優先順位により入出力デバイスからの処理要求を受け取
り、その処理要求に対応した処理を行なっている。
Therefore, an application program that inputs and outputs data with these input/output devices performs processing corresponding to the interface of each input/output device. Further, when processing requests are generated simultaneously from a plurality of input/output devices, the application program receives the processing requests from the input/output devices according to a predetermined priority order, and performs processing corresponding to the processing requests.

(発明が解決しようとする課題) 上に述べたように、従来の入出力処理方式では、各入出
力デバイスのインタフェースの違いをアプリケーション
プログラムで吸収しているので、アプリケーションプロ
グラムのボータビリティ(移植性)が悪い。また複数の
入出力デバイスがら同時に処理要求が発生したとき、処
理の優先順位は固定されているので、運用で優先順位を
かえることができない、このように従来の入出力処理方
式には解決すべき課題がある。
(Problems to be Solved by the Invention) As mentioned above, in the conventional input/output processing method, differences in the interface of each input/output device are absorbed by the application program. ) is bad. Furthermore, when processing requests are generated simultaneously from multiple input/output devices, the priority order of processing is fixed, so the priority order cannot be changed during operation. There are challenges.

本発明は、このような事情に鑑みてなされたものであり
、その目的は、アプリケーションフ“ログラムのボータ
ビリティを高め、且つ各入出力デバイスの処理優先順位
を指定することができる入出力処理方式を提供すること
にある。
The present invention was made in view of the above circumstances, and its purpose is to provide an input/output processing method that can increase the portability of application programs and specify the processing priority of each input/output device. Our goal is to provide the following.

(課題を解決するための手段) 本発明の入出力処理方式は、上記目的を達成するために
、プログラムを実行する計算機に複数の入出力デバイス
が接続された計算機システムにおける前記プログラムと
前記入出力デバイス間でデータの入出力を制御する入出
力処理方式において、前記入出力デバイスを管理するデ
バイスドライバからのイベント情報の形式を前記メツセ
ージ情報の形式と同一の形式に変換するための交換情報
、デバイス番号、論理ポート番号および優先度レベルを
記憶する形式変換テーブルと、 前記デバイスドライバからのメツセージ情報を前記優先
度レベルに対応してキューイングする受信キューと、 前記プログラムからデバイス初期化要求と共にデバイス
番号および優先度レベルを受け収り、前記形式変換テー
ブルを検索して未使用の論理ポート番号を見つけると共
に、前記デバイス番号に対応する前記デバイスドライバ
から前記変換情報を取り込み、該変換情報、前記未使用
の論理ポート番号ならびに受け取った前記優先度レベル
および前記デバイス番号を前記形式変換テーブルに設定
するデバイス初期化部と、 前記デバイスドライバからのイベント情報を、前記形式
変換テーブル内の変換情報に基づいて前記メツセージ情
報と同一の形式に変換するメツセージ変換部と、 該メツセージ変換部によりメツセージ情報の形式と同一
に変換されたイベント情報を、前記形式変換テーブル内
の優先度レベルに対応した前記受信キューのレベルに格
納する受信メツセージ処理部とを設け、 前記プログラムは前記受信キューがら前記優先度レベル
で指定されたレベルに格納されているメツセージ情報を
取り出す。
(Means for Solving the Problems) In order to achieve the above object, the input/output processing method of the present invention provides a computer system in which a plurality of input/output devices are connected to a computer that executes a program. In an input/output processing method that controls data input/output between devices, exchange information and a device for converting the format of event information from a device driver that manages the input/output device into the same format as the message information format. a format conversion table that stores numbers, logical port numbers, and priority levels; a reception queue that queues message information from the device driver in accordance with the priority level; and a device number that receives a device initialization request from the program. and a priority level, searches the format conversion table to find an unused logical port number, fetches the conversion information from the device driver corresponding to the device number, and retrieves the conversion information, the unused logical port number, and the unused logical port number. a device initialization unit that sets the received logical port number, the received priority level, and the device number in the format conversion table; and event information from the device driver, based on the conversion information in the format conversion table. a message conversion unit that converts the event information into the same format as the message information; and a message conversion unit that converts the event information converted into the same format as the message information by the message conversion unit to the level of the reception queue corresponding to the priority level in the format conversion table. and a received message processing unit for storing message information in the reception queue, the program extracting message information stored in the level specified by the priority level from the reception queue.

(実施例) 次に、本発明の実施例について図面を参照して詳細に説
明する。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例の構成図である。同図におい
て、1はデバイス初期化部、2はメツセージが格納され
る受信キュー、3は受信メツセージ処理部、4はメツセ
ージ変換部、5は形式変換テーブル、101はプロセス
、102−1〜102−nは入出力デバイス(図示せず
)を制御するデバイスドラ不バである。プロセス101
は接続されている任意の入出力デバイスとの間でデ−夕
の入出力を行う、デバイス初期化部1は、プロセス10
1からの要求により入出力デバイスの優先度レベルと論
理ポート番号を形式変換テーブル5に設定する。受信キ
ュー2は、入出力デバイスから受信したメツセージをキ
ューイングする。
FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, 1 is a device initialization unit, 2 is a reception queue in which messages are stored, 3 is a received message processing unit, 4 is a message conversion unit, 5 is a format conversion table, 101 is a process, and 102-1 to 102- n is a device driver that controls an input/output device (not shown). Process 101
The device initialization unit 1 performs data input/output with any connected input/output device.
1 sets the priority level and logical port number of the input/output device in the format conversion table 5. The reception queue 2 queues messages received from input/output devices.

受信メツセージ処理部3は、メツセージ変換部4からメ
ツセージを受け取り、受信キュー2に格納する。メツセ
ージ変換部4は、デバイスドライバ102−1〜102
−nから受け取ったイベント情報を形式変換テーブル5
の情報に基づいて上述したメツセージの形式に変換する
The received message processing section 3 receives the message from the message conversion section 4 and stores it in the reception queue 2. The message conversion unit 4 includes device drivers 102-1 to 102.
- Format conversion table 5 of event information received from n
The message is converted into the above-mentioned message format based on the information.

第2図は形式変換テーブル5の構成例を示す。FIG. 2 shows an example of the structure of the format conversion table 5.

形式変換テーブル5には、デバイス番号、論理ポート番
号、優先度レベルおよび形式変換情報が設定される。
In the format conversion table 5, device numbers, logical port numbers, priority levels, and format conversion information are set.

第3図はメツセージ形式の一例を示す、メツセージには
、論理ポート番号、優先度レベル、データ属性、データ
長、データボイタ、継続メツセージポインタおよび次メ
ツセージポインタを含む。
FIG. 3 shows an example of a message format. The message includes a logical port number, priority level, data attribute, data length, data pointer, continuation message pointer, and next message pointer.

データポインタで示された場所にメツセージ内のデータ
が格納される。
The data in the message is stored at the location indicated by the data pointer.

第4図は受信キュー2の内容例を示す。FIG. 4 shows an example of the contents of the reception queue 2.

次に、第1図の実施例においてプロセス101がデバイ
ス初期化部1にデバイス初期化要求を出した際の動作に
ついて説明する。プロセス101は、入出力デバイスを
使用するとき、初期化4M報と共にデバイス初期化要求
をデバイス初期化部1に出す、この初期化情報には、使
用する入出力デバイスのデバイス番号および優先度レベ
ルが含まれている。デバイス初期化部1では、形式変換
テーブル5を検索し、要求されたデバイス番号のデバイ
スが既に登録されているか否かを調べ(第5図のステッ
プ5201)、そのデバイス番号がすでに存在すれば呼
び出したプロセスにエラーリターンする(ステップ52
02)、そのデバイス番号が登録されていなければ、未
使用の論理ポート番号を割り当て、要求された優先度レ
ベルと論理ポート番号と形式変換情報とを形式変換テー
ブルに登録する(ステップ3203)、なお形式変換情
報はデバイスドライバ固有の情報であるので、デバイス
番号で指定された入出力デバイスを管理しているデバイ
スドライバ102に形式変換情報を要求し、その情報を
得る。その後、10セス101に割り当てた論理ポート
番号をプロセス101に返却する(ステップ5204)
、プロセス101はこの後、この論理ポート番号を指定
して入出力デバイスにアクセスすることができる。
Next, the operation when the process 101 issues a device initialization request to the device initialization unit 1 in the embodiment shown in FIG. 1 will be described. When using an input/output device, the process 101 issues a device initialization request to the device initialization unit 1 along with an initialization 4M report. This initialization information includes the device number and priority level of the input/output device to be used. include. The device initialization unit 1 searches the format conversion table 5 to check whether a device with the requested device number is already registered (step 5201 in FIG. 5), and if the device number already exists, the device is called. error return to the process (step 52)
02), if the device number is not registered, an unused logical port number is assigned, and the requested priority level, logical port number, and format conversion information are registered in the format conversion table (step 3203). Since the format conversion information is information unique to the device driver, the format conversion information is requested from the device driver 102 that manages the input/output device specified by the device number, and the information is obtained. After that, the logical port number assigned to the process 101 is returned to the process 101 (step 5204).
, process 101 can then specify this logical port number to access the input/output device.

次に第1図の実施例において、入出力デバイスにイベン
トが発生した際の動作について説明する。
Next, the operation when an event occurs in an input/output device in the embodiment shown in FIG. 1 will be explained.

ここでイベントが発生した入出力デバイスは入出力ドラ
イバ102−2が管理している入出力ドライバとする。
Here, it is assumed that the input/output device in which the event occurred is an input/output driver managed by the input/output driver 102-2.

デバイスにイベントが発生したとき、デバイスドライバ
と102−2では、形式変換テーブル5に該当入出力デ
バイスが登録されてるか否かを調べ(第6図のステップ
5205) 、登録されていない場合はそのデバイスは
未初期化状態であると判断し、発生したイベントを破棄
しリターンする(ステップ8206)、形式変換テーブ
ル5に該当デバイスが存在する場合、メツセージ変換部
4は形式変換テーブル5の情報に基づいて変換形式を解
釈し、発生イベントをメツセージ形式に変換する(ステ
ップ5207)、受信メツセージ処F1部3は、メ・y
セージ変換部4より渡されたメツセージを受信キュー2
にキューイングする(ステップ8208)、この際、受
信メツセージとすでに受信キュー2にキューイングされ
ているメツセージのレベルを比較し、レベルに応じた位
置にキューイングする。この際、第4図に示すように、
レベルが高いメツセージはど受信キュー2の先頭に格納
される。
When an event occurs in a device, the device driver and 102-2 check whether the corresponding input/output device is registered in the format conversion table 5 (step 5205 in Figure 6), and if it is not registered, It is determined that the device is in an uninitialized state, the event that has occurred is discarded, and the process returns (step 8206). If the corresponding device exists in the format conversion table 5, the message conversion unit 4 uses the information in the format conversion table 5 to The receiving message processor F1 section 3 interprets the conversion format and converts the generated event into a message format (step 5207).
The message passed from the message converter 4 is sent to the reception queue 2.
(Step 8208). At this time, the level of the received message is compared with that of messages already queued in reception queue 2, and the message is queued at a position corresponding to the level. At this time, as shown in Figure 4,
Messages with a high level are stored at the head of the reception queue 2.

次に、第1図の実施例において、プロセス101が受信
キュー2から受信メツセージを取り出す際の動作につい
て説明する。プロセス101は、メツセージを読み取る
際、論理ポート番号の指定が可能である(ステップ52
09)、論理ポート番号の指定があった場合、受信キュ
ー2がら指定された論理ポート番号を持つメツセージを
検索しくステップ5210)、受信キュー2から取り出
す(ステップ5211)、論理ポートの指定が無い場合
は、受信キュー2の先頭からメッセージを取り出す(ス
テップ3212)。取り出されたメツセージはプロセス
101に返却される(ステップ3213)、このように
、読みだし要求時、複数の入出力デバイスからイベント
が発生している場合、優先度レベルの順にデータを読み
こむことが可能である。
Next, the operation when the process 101 takes out a received message from the reception queue 2 in the embodiment shown in FIG. 1 will be described. The process 101 can specify a logical port number when reading a message (step 52
09), If a logical port number is specified, search for a message with the specified logical port number from receive queue 2 (step 5210), retrieve it from receive queue 2 (step 5211), if no logical port is specified retrieves the message from the head of receive queue 2 (step 3212). The retrieved message is returned to the process 101 (step 3213).In this way, when events are generated from multiple input/output devices at the time of a read request, data can be read in order of priority level. It is possible.

(発明の効果) 以上に説明したように、本発明の入出力処理方式によれ
ば、プログラムのボータビリティを高めることができる
。また、入出力デバイスからの処理要求の処理優先度レ
ベルをプログラムで指定できるので、運用面の柔軟性を
高めることができる。
(Effects of the Invention) As explained above, according to the input/output processing method of the present invention, program portability can be improved. Furthermore, since the processing priority level of processing requests from input/output devices can be specified by a program, operational flexibility can be increased.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例の構成図、 第2図は形式変換テーブル5の内容例を示す図、第3図
はメツセージの形式の例を示す図、第4図は受信キュー
2の内容例を示す図、第5図は第1図実施例においてグ
ログラム101から初期化要求があったときの処理を示
す図、 第6図は第1図実施例において入出力デバイスにイベン
トが発生したときの処理を示す流れ図、第7図は第1図
実施例においてプログラム101が受信キュー2からメ
ツセージを取り出す処理例を示す流れ図である。 1・・・デバイス初期化部、2・・・受信キュー3・・
・受信メツセージ処理部、4・・・メツセージ変換部、
5・・・形式変換テーブル、101・・・プロセス、1
02−1〜102−n・・・デバイスドライバ。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the contents of a format conversion table 5, FIG. 3 is a diagram showing an example of a message format, and FIG. 4 is a diagram showing an example of a message format. Figure 5 is a diagram showing an example of contents. Figure 5 is a diagram showing processing when an initialization request is received from the program 101 in the embodiment shown in Figure 1. Figure 6 is a diagram showing an event occurring in an input/output device in the embodiment shown in Figure 1. FIG. 7 is a flowchart showing an example of a process in which the program 101 retrieves a message from the reception queue 2 in the embodiment of FIG. 1...Device initialization section, 2...Reception queue 3...
- Received message processing section, 4... message conversion section,
5... Format conversion table, 101... Process, 1
02-1 to 102-n...Device driver.

Claims (1)

【特許請求の範囲】 プログラムを実行する計算機に複数の入出力デバイスが
接続された計算機システムにおける前記プログラムと前
記入出力デバイス間でデータの入出力を制御する入出力
処理方式において、 前記入出力デバイスを管理するデバイスドライバからの
イベント情報の形式を前記メッセージ情報の形式と同一
の形式に変換するための交換情報、デバイス番号、論理
ポート番号および優先度レベルを記憶する形式変換テー
ブルと、 前記デバイスドライバからのメッセージ情報を前記優先
度レベルに対応してキューイングする受信キューと、 前記プログラムからデバイス初期化要求と共にデバイス
番号および優先度レベルを受け取り、前記形式変換テー
ブルを検索して未使用の論理ポート番号を見つけると共
に、前記デバイス番号に対応する前記デバイスドライバ
から前記変換情報を取り込み、該変換情報、前記未使用
の論理ポート番号ならびに受け取った前記優先度レベル
および前記デバイス番号を前記形式変換テーブルに設定
するデバイス初期化部と、 前記デバイスドライバからのイベント情報を、前記形式
変換テーブル内の変換情報に基づいて前記メッセージ情
報と同一の形式に変換するメッセージ変換部と、 該メッセージ変換部によりメッセージ情報の形式と同一
に変換されたイベント情報を、前記形式変換テーブル内
の優先度レベルに対応した前記受信キューのレベルに格
納する受信メッセージ処理部とを設け、 前記プログラムには前記受信キューから前記優先度レベ
ルで指定されたレベルに格納されているメッセージ情報
を取り出す処理が含まれていることを特徴とする入出力
処理方式。
[Scope of Claims] In an input/output processing method for controlling data input/output between the program and the input/output device in a computer system in which a plurality of input/output devices are connected to a computer that executes a program, the input/output device a format conversion table that stores exchange information, a device number, a logical port number, and a priority level for converting the format of event information from a device driver that manages the message information into a format that is the same as the format of the message information; and the device driver. a receive queue for queuing message information from the program according to the priority level; and a receive queue that receives a device number and priority level along with a device initialization request from the program, and searches the format conversion table to locate an unused logical port. find the number, fetch the conversion information from the device driver corresponding to the device number, and set the conversion information, the unused logical port number, and the received priority level and device number in the format conversion table. a device initialization unit that converts event information from the device driver into the same format as the message information based on conversion information in the format conversion table; a received message processing unit that stores event information converted to the same format as the priority level in the receive queue level corresponding to the priority level in the format conversion table; An input/output processing method characterized by including processing for retrieving message information stored in a level specified by a level.
JP25458889A 1989-09-28 1989-09-28 Input/output processing system Pending JPH03113662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25458889A JPH03113662A (en) 1989-09-28 1989-09-28 Input/output processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25458889A JPH03113662A (en) 1989-09-28 1989-09-28 Input/output processing system

Publications (1)

Publication Number Publication Date
JPH03113662A true JPH03113662A (en) 1991-05-15

Family

ID=17267128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25458889A Pending JPH03113662A (en) 1989-09-28 1989-09-28 Input/output processing system

Country Status (1)

Country Link
JP (1) JPH03113662A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111101B1 (en) * 2003-05-07 2006-09-19 Ayago Technologies General Ip (Singapore) Ptd. Ltd. Method and system for port numbering in an interconnect device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111101B1 (en) * 2003-05-07 2006-09-19 Ayago Technologies General Ip (Singapore) Ptd. Ltd. Method and system for port numbering in an interconnect device

Similar Documents

Publication Publication Date Title
US6633925B2 (en) Operating system for generating overlapped input-output requests to a device in a disk array storage
US5606703A (en) Interrupt protocol system and method using priority-arranged queues of interrupt status block control data structures
US6189007B1 (en) Method and apparatus for conducting a high performance locking facility in a loosely coupled environment
CN101154202B (en) Managing system management interrupts in a multiprocessor computer system
US6185650B1 (en) High performance locking facility
US6253274B1 (en) Apparatus for a high performance locking facility
US6088757A (en) Computer program means and device for conducting high performance locking facility in a loosely coupled environment
JPS5936770B2 (en) A device that receives and services request signals from peripheral devices in data processing equipment.
JP2004178253A (en) Storage device controller and method for controlling storage device controller
US5734918A (en) Computer system with an input/output processor which enables direct file transfers between a storage medium and a network
CN109992539B (en) Double-host cooperative working device
US20060242258A1 (en) File sharing system, file sharing program, management server and client terminal
JPH03113662A (en) Input/output processing system
US3729716A (en) Input/output channel
JP2723604B2 (en) Data processing device
JP3307331B2 (en) Network file system data transfer method
JPH0944438A (en) Multiplex processing method for synchronous type input/ output instruction
JP2567833B2 (en) Interrupt detection method
CN116340207A (en) Hardware equipment data access method, device, equipment and medium
JP2594567B2 (en) Memory access control device
CN116126703A (en) Debugging method, debugging device and readable storage device
JPS62256032A (en) Data buffering control system
JPH1125122A (en) Data base retrieving system
JPH05197544A (en) Data processor
McMahon et al. O Discless HP-UX Workstations, by Scott W. Wang