JPS59177634A - Counting system of length of all input data in input buffer - Google Patents

Counting system of length of all input data in input buffer

Info

Publication number
JPS59177634A
JPS59177634A JP5310883A JP5310883A JPS59177634A JP S59177634 A JPS59177634 A JP S59177634A JP 5310883 A JP5310883 A JP 5310883A JP 5310883 A JP5310883 A JP 5310883A JP S59177634 A JPS59177634 A JP S59177634A
Authority
JP
Japan
Prior art keywords
input
channel
data
buffer
input data
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.)
Granted
Application number
JP5310883A
Other languages
Japanese (ja)
Other versions
JPS6240745B2 (en
Inventor
Toshimitsu Tokumoto
利光 徳元
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5310883A priority Critical patent/JPS59177634A/en
Publication of JPS59177634A publication Critical patent/JPS59177634A/en
Publication of JPS6240745B2 publication Critical patent/JPS6240745B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To count the length of all input data with a less number of execution steps independently of the length of input data by deriving the length of all input data on a basis of the number of the last used input buffer, the size of input buffers, etc. CONSTITUTION:The length of all input data is obtained on a basis of the number of the last used input buffer, the size of input buffers, a left byte count of CSW, etc. For example, when input data is read into input buffers 5-1-5-5 on a memory 4 of a CPU 1 from an input/output controller 3 through a channel device 2, areas H and L are set to input buffers 5-1-5-4 by the CPU 1 to generate a CCW 7, and sequential numbers are set to input buffers to issue a start instruction SIO. A CAW and the CCW are read in by the channel device 2, and the read CCW is executed, and the CSW in the channel device 2 is rewritten on a basis of the execution result. Then, the length of all input data is obtained on a basis of the number of the last used input buffer, lengths of areas L, and a left byte count l of the CSW by the CPU 1.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、中央処理装置とチャネル装置と入出力制御装
置とを備え′、中央処理装置の記憶部に用意され、一定
の大きさでリンクされた複数個の入力バッファに対し、
データ・チェインされ、通し番号を持つチャネル・コマ
ンド語によりチャネル装置を経由して入出力制御装置か
らの入力データを読み込むようにし、読み込んだ全入力
データ長を求めるときには通し番号を使ってデータの計
数を行うようにした入カバソファの全入力データ長計数
方式に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention comprises a central processing unit, a channel device, and an input/output control device. For multiple input buffers,
Input data is read from the input/output control device via the channel device using a channel command word that is data chained and has a serial number, and when calculating the length of the total input data read, the serial number is used to count the data. The present invention relates to a total input data length counting method for an input cover sofa.

〔従来技術と問題点〕[Prior art and problems]

第1図はシステム構成の概要を示す図、第2図は入力バ
ッファの入力データ数計算方式の従来例を説明する図で
ある。図において、1はCP U(中央処理装置)、2
はチャネル装置、3は入出力制御装置、4はメモリ、5
−1ないし5−5は入力バッファ、6−1ないし6−5
はCCW (ChannelComma nd Wo 
r d )、7はCS W (Channel  5t
atusWOrd )を示す。
FIG. 1 is a diagram showing an overview of the system configuration, and FIG. 2 is a diagram illustrating a conventional example of a method for calculating the number of input data of an input buffer. In the figure, 1 is a CPU (central processing unit), 2 is
is a channel device, 3 is an input/output control device, 4 is a memory, 5
-1 to 5-5 are input buffers, 6-1 to 6-5
is CCW (ChannelCommandWo)
r d ), 7 is CS W (Channel 5t
atusWOrd).

第1図に示すように、CPUIにチャネル装置2を通し
て入出力制御装置3が接続されたシステムにおいて、C
PUIのメモリ4上に、読み込まれる最大のデータ量に
見合うだけの入力バッファが一定の大きさで複数個リン
クされて用意され、チャネル経由で入出力制御装置3か
らのデータが入力バッファに読み込まれる。このような
場合には、CCW (Channel  Comman
d  Word ;チャネル・コマンド語)を使ってC
P U 1よりチャネル装置2ヘデータの読み込みが依
頼される。チャネル装置2は、CCWを読みながら入出
力制御装置3からのデータをメモリ4上の入力バッファ
に詰めてゆくが、人力バッファは、先に述べたように読
み込まれると予想されるデータ量の最大容量に見合って
用意されているので、満杯になるとは限らず、途中で読
み込みが終了することが多い。
As shown in FIG. 1, in a system in which an input/output control device 3 is connected to a CPUI through a channel device 2,
A plurality of input buffers of a certain size are linked and prepared on the memory 4 of the PUI to correspond to the maximum amount of data to be read, and data from the input/output control device 3 is read into the input buffers via the channel. . In such cases, CCW (Channel Commander)
d Word (channel command word)
P U 1 requests the channel device 2 to read data. The channel device 2 fills the input buffer on the memory 4 with data from the input/output control device 3 while reading the CCW, but the manual buffer is filled with the maximum amount of data expected to be read as described above. Because they are prepared according to their capacity, they are not always full, and loading often ends midway through.

データを読み込む前の入力バッファとCCWを示したの
が第2図囚である。第2図(5)に示すように、人力バ
ッファ5−1ないし5−5は、制御域とデータ域からな
る。制御域は、データの内容や性格などの制御情報を格
納するのに用いられると共に、次の入力バッファの制御
域へのポインタをもつ。またCCW6−1ないし6−5
は、夫々入力データ域の先頭アドレスをポイントすると
共に、次のCCWへTICコマンドによりチェインされ
る。なお第2図囚において、Lは各人力バッファ5−1
ないし5−5のデータ域のサイズを示し、この値は固定
される。このような入力バッファ5−1ないし5−5に
データが読み込1れた状態を示したのが第2図(B)で
ある。第2図(8)において、CS W (Chann
el  3tatus  Word  チャネル状態語
)は、CP ’Uの所定の記憶域に設けられ、チャネル
が一連のCCWを実行して終了する直前にセットするも
のであり、ステータスには正常終了や異常終了、エラー
などのステータス情報が書き込まれ、バイト・カウント
にはデータが格納された最終使用人力バッファのデータ
域の残りバイト数ノが書き込まれる。
Figure 2 shows the input buffer and CCW before reading data. As shown in FIG. 2 (5), the manual buffers 5-1 to 5-5 consist of a control area and a data area. The control area is used to store control information such as data content and characteristics, and also has a pointer to the control area of the next input buffer. Also CCW6-1 to 6-5
point to the start address of the input data area, and are chained to the next CCW by the TIC command. In addition, in the prisoner in Figure 2, L is each human power buffer 5-1
Indicates the size of the data area from 5 to 5, and this value is fixed. FIG. 2(B) shows a state in which data has been read into such input buffers 5-1 to 5-5. In FIG. 2 (8), CS W (Chann
The channel status word (channel status word) is provided in a predetermined storage area of the CP'U, and is set immediately before the channel finishes executing a series of CCWs.The status includes normal completion, abnormal completion, and error. Status information such as , etc. is written, and the number of bytes remaining in the data area of the last user power buffer in which data is stored is written in the byte count.

CPUIでは、以上のようにして人力バッファ5−1な
いし5−5にデータが読み込まれると、その読み込んだ
データ量の情報が必要となる。従来は、入力バッファの
り一ンクを追ってデータが詰まった人力バッファ5−1
ないし5−3の数を数え、最後のデータが途中まで詰ま
っている入カバソファ5−4のデータ数を加え、データ
の全長を求めている。
In the CPUI, when data is read into the manual buffers 5-1 to 5-5 as described above, information on the amount of data read is required. Conventionally, a manual buffer 5-1 filled with data following the input buffer
The total length of the data is determined by counting the numbers from 5-3 to 5-3 and adding the number of data in the input cover sofa 5-4, which is filled halfway with the last data.

従って、このような従来の方式では、読み込んだ全入力
データ長は、例えば、 TOTALNUM=Oi DO人カバソファ・ポインタコ先頭人カバソファ番アド
レス REPEAT次の入力バッファ・アドレスWHILE 
 (入カバッファ内データ・アドレス−最終アドレス)
; TOTALNUM=TOTALNUM+入カバッファ長
END。
Therefore, in such a conventional method, the total read input data length is, for example, TOTALNUM=Oi DO person cover sofa pointer taco first person cover sofa number address REPEAT next input buffer address WHILE
(Data address in input buffer - final address)
; TOTALNUM=TOTALNUM+input buffer length END.

TOTALNUM=TOTALNUM十人カバッフγ長
−1゜ によって求めている。そのため、読み込み入力データ長
が長いと、入力データ数(TOTALNUM)を算出す
るまでの実行ステップ数が多くなシ、また全体のソース
行数も多く、ループがあるため読みにくい。
It is determined by TOTALNUM = TOTALNUM ten-person Kabuff γ length - 1°. Therefore, if the read input data length is long, the number of execution steps until the number of input data (TOTALNUM) is calculated is large, and the total number of source lines is large, making it difficult to read due to loops.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、チャネル
装置を経由して中央処理装置のメモリ上に用意された入
力バッファに入力データを読み込み、全入力データ長を
求める場合には、入力データ長の長さに関係なく、しか
も少ない実行ステップ数により全入力データ長の計数が
可能な入力バッファの全入力データ長計数方式を提供す
ることを目的とするものである。
The present invention is based on the above consideration, and when calculating the total input data length by reading input data into an input buffer prepared on the memory of a central processing unit via a channel device, the input data It is an object of the present invention to provide a method for counting the total input data length of an input buffer, which can count the total input data length with a small number of execution steps, regardless of the length.

〔発明の構成〕[Structure of the invention]

そのだめに本発明の入力バッファの全入力データ長計数
方式は、中央処理装置とチャネル装置と入出力制御装置
とを備え、上記中央処理装置の記憶部に用意された一定
の大きさの複数個がリンクされた入力バッファに対し、
データ・チェインされたチャネル命コマンド語によυ上
記チャネル装置を経由して上記入出力制御装置からの入
力データが読み込まれた際、全入力データ長を求めるよ
うになった入カバソファの全入力′データ長計数方式で
あって、上記中央処理装置は、上記人力/(ソファに番
号設定部を設けてデータ読み込みのだめの上記チャネル
・コマンド語と上記入カッくソファを作成するときに上
記入カッ(ソファにリンクの順序に従って番号を設定す
ると共に、該番号の設定位置と当該入力バッファのデー
タ格納域の大きさとを記憶しておき、且つ、入力データ
を上記入力バッファに読み込む際、上記チャネル装置が
、チャネル・コマンド語を上記中央処理装置から読み込
んでチャネル・コマンド語を実行し、該実行する毎にチ
ャネル装置内に設けられたチャネル状態語のチャネルの
終了状態や残シの〕(イトφカウントなどのチャネルの
情報を書き替え、入力すべきデータがなくなると、その
時のチャネル状態語の情報を上記中央処理装置の主記憶
域に設けられたチャネル状態語に設定した後上記チャネ
ル装置から上記中央処理装置に終了割込みがかけられる
と、上記中央処理装置は、最終使用人カッくソファの上
記番号の設定位置の番号を読み取り、該読み取った番号
に上記データ格納域の大きさの値を乗じ、該乗じて得ら
れた値から上記残りのバイト・カウントを減じて全入力
データ長を計数する演算処理を行うように構成されたこ
とを特徴とするものである。
To avoid this, the method for counting the total input data length of the input buffer of the present invention comprises a central processing unit, a channel device, and an input/output control device, and a plurality of input data lengths of a certain size prepared in the storage section of the central processing unit. For the linked input buffer,
When the input data from the input/output control device is read from the input/output control device via the channel device through the data chained channel command word, the total input data length of the input cover sofa is now calculated. In the data length counting method, the central processing unit is configured to provide a number setting unit in the manual input/(sofa) and input the input keyword(s) when creating the channel command word for reading data and the input couch. A number is set on the sofa according to the link order, and the setting position of the number and the size of the data storage area of the input buffer are memorized, and when the input data is read into the input buffer, the channel device , reads the channel command word from the central processing unit, executes the channel command word, and every time the channel command word is executed, the end state of the channel and the remaining number of channels in the channel state word provided in the channel device are calculated. When the channel information such as When a termination interrupt is applied to the processing device, the central processing device reads the number of the setting position of the number on the final servant's couch, multiplies the read number by the value of the size of the data storage area, The present invention is characterized in that it is configured to perform arithmetic processing to count the total input data length by subtracting the remaining byte count from the multiplied value.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照しつつ説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第3図は本発明の1実施例構成を示す図、第4図は本発
明が適用されるバッファの構成を説明する図、第5図は
本発明による入力データ数の計算アルゴリズムを説明す
る図、第6図は本発明が適用されたデータ読み込み処理
の流れを説明する図である。図において、8はバッファ
域、9はバッファ管理ルーチン、10はCCW及びバッ
ファ作成部、11はバッファ後処理ルーチン、12は計
数処理部、13はチャネル・インターフェイス制御ルー
チンを示し、5−1ないし5−5.6−1ないし6−5
と7は第2図に対応するものを示す。
FIG. 3 is a diagram illustrating the configuration of an embodiment of the present invention, FIG. 4 is a diagram illustrating the configuration of a buffer to which the present invention is applied, and FIG. 5 is a diagram illustrating an algorithm for calculating the number of input data according to the present invention. , FIG. 6 is a diagram illustrating the flow of data reading processing to which the present invention is applied. In the figure, 8 is a buffer area, 9 is a buffer management routine, 10 is a CCW and buffer creation section, 11 is a buffer post-processing routine, 12 is a counting processing section, 13 is a channel interface control routine, and 5-1 to 5 -5.6-1 to 6-5
and 7 indicate those corresponding to FIG.

本発明は、入力バッファの制御域にチェインに従った通
し番号を設定しておき、入カッくソファの大きさと最終
使用人カッくソファの通し番号及びデータ域の残りバイ
ト数によって全入力データ長を計数しようとするもので
おる。第3図において、バッファ管理ルーチン9はノ(
ソファ全体を管理するものであり、CCW及び)くソフ
ァ作成部10は、CCW及び入力バッファを、先に述べ
た第2図囚に示すように、ポイントしてチェインを張っ
たり、そのチェインに従って入カッくソファの通し番号
を設定したりするものである。通し番号は第4図に示す
ように、CCWによってポイントされる入カバソファの
データ域の先頭からhの位置に設定される。なお、■■
が制御域の大きさ、Lがデータ域の大きさを示している
。バッファ後処理ルーチン11は、バッファにデータが
読み込まれたときの後へ理を行うもので、入力データ数
を計数する場合には計数処理部13に最終使用人カッ;
ソファの番号や残り数、入力バッファの大きさを渡して
、計数処理部13で得られた入力データ数を出力する0
チヤネル・インターフェイス制御ル−チン14は、チャ
ネル装置とのインターフェイスをIl制御するものであ
る。
The present invention sets a serial number according to the chain in the control area of the input buffer, and counts the total input data length based on the size of the input sofa, the serial number of the final servant's sofa, and the number of bytes remaining in the data area. That's what I'm trying to do. In FIG. 3, the buffer management routine 9 is
The sofa creation unit 10 manages the entire sofa, and the CCW and input buffer 10 points to the CCW and input buffer to form a chain, and input data according to the chain. It is used to set serial numbers for cute sofas. As shown in FIG. 4, the serial number is set at the position h from the beginning of the data area of the input cover sofa pointed to by the CCW. In addition, ■■
indicates the size of the control area, and L indicates the size of the data area. The buffer post-processing routine 11 performs processing after data has been read into the buffer, and when counting the number of input data, it sends a final message to the counting processing section 13.
Pass the sofa number, remaining number, and input buffer size, and output the number of input data obtained by the counting processing unit 13.
The channel interface control routine 14 controls the interface with the channel device.

入力バッファ5−1ないし5−5に対し、第5図に示す
ように入力データが読み込まれた場合について説明する
。第5図において、C8W’7のC3WPTRは最終使
用人カッくソファ5−4のデータ域の先頭アドレスを指
している。従って、先に述べたように、その先頭アドレ
スからhを減じたアドレスにその最終使用人カッくソフ
ァ5−4の通し番号が設定されている。そこで、そのア
ドレスに従って読んだカウント部の通し番号が「4」で
あるとし、また、C3W7の残υノ(イト拳カウントC
3WLがlであるとすると、全入力データ長は、4−X
−L−1 によって求められる。
A case where input data is read into the input buffers 5-1 to 5-5 as shown in FIG. 5 will be described. In FIG. 5, C3WPTR of C8W'7 points to the start address of the data area of the last employee Kakku Sofa 5-4. Therefore, as described above, the serial number of the last employee Kakkuso 5-4 is set to the address obtained by subtracting h from the first address. Therefore, assume that the serial number of the count section read according to that address is "4", and also assume that the serial number of the count part read according to that address is "4", and
If 3WL is l, the total input data length is 4-X
-L-1.

次に入力バッファにチャネル装置を経由して入力データ
の読み込みを行う場合におけるCPUとチャネル装置に
よる処理を第6図を参照しつつ説明する。
Next, the processing by the CPU and channel device when input data is read into the input buffer via the channel device will be explained with reference to FIG.

■ まず入力データ数を計数するに必要な入力バッファ
のhとLを設定する。
■ First, set h and L of the input buffer necessary to count the number of input data.

■ RE A Dコマンドや次のCCWをポイントする
TICコマンドを埋めてCCWを作成する。
■ Create a CCW by filling in the RE A D command and the TIC command that points to the next CCW.

■ 入カバソファの通し番号を設定する。■ Set the serial number of the cover sofa.

■ 起動命令S工Oを発行する。■Issue startup command S.

以上の処理をCPUにおいて行うと、チャネル装置では ■ CA W (Channel  Address 
 Word)を読み込む0 ■ CCWを読み込む。
When the above processing is performed in the CPU, the channel device will receive ■ CA W (Channel Address
0 ■ Read CCW.

■ 読み込んだCCWを実行する。■ Execute the loaded CCW.

■ 実行した結果を基に、チャネル装置内のC8Wを書
き替える。
■ Rewrite C8W in the channel device based on the executed results.

■ 先に■により実行したCCWのチェイン・フラグが
オンで、且つリード・データがあるか否かを調べる。
(2) Check whether the chain flag of the CCW previously executed in (2) is on and there is read data.

YeSの場合には■の処理に戻り、同様の処理を繰υ返
す。しかし、NOの場合(チェイン・フラグがオフ、或
いはり−ドφデータがない)場合には主記憶上のC8W
にチャネル装置のC8Wの情報を設定した後チャネル・
エンド(CE)或いはデバイスφエンド(D E)によ
、りCPUへ終了割込みをかける。
In the case of Yes, the process returns to step (2) and the same process is repeated. However, in the case of NO (the chain flag is off or there is no read φ data), the C8W on the main memory
After setting the C8W information of the channel device to
An end interrupt is sent to the CPU by the end (CE) or the device φ end (DE).

[相] CPUでは、データ数要求ビットを調べ、これ
がオフの場合には完了とするが、オンの場合には、最終
使用人力バッファの番号とLとC8Wの残りバイト・カ
ウントlから、全入カデータ長=番号%L−1 により全入力データ数を計数する。
[Phase] The CPU checks the data count request bit, and if it is off, it is considered complete, but if it is on, all input data is obtained from the last user power buffer number, L, and the remaining byte count l of C8W. Count the total number of input data using the data length = number %L-1.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、最終
使用人カバソファの番号と入カバソファの大きさ、C8
Wの残りバイト−カウントにより全入力データ長を求め
るので、入力データが長い場合であっても、その長さに
は関係なく、少ない実行ステップ数により全入力データ
長を求めることができる。また、全入力データ長を計数
するためのソース行数も減り見やすくなる。
As is clear from the above description, according to the present invention, the number of the final servant cover sofa, the size of the cover sofa, C8
Since the total input data length is determined by counting the remaining bytes of W, even if the input data is long, the total input data length can be determined with a small number of execution steps, regardless of the length. Additionally, the number of source lines required to count the total input data length is reduced, making it easier to see.

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

第1図はシステム構成の概要を示す図、第2図は入力バ
ッファの入力データ数計算方式の従来例を説明する図、
第3図は本発明の1実施例構成を示す図、第4図は本発
明が適用されるバッファの構成を説明する図、第5図は
本発明による入力データ数の計算アルゴリズムを説明す
る図、第6図は本発明が適用されるデータ読み込み処理
の流れを説明する図である。 1・・・CPU、2・・・チャネル装置、3・・・入出
力制御装置、4・・・メモリ、5−1ないし5−5・・
・入力バッファ、6−1ないし6−5・・・CCW−,
7・・・C5W1S・・・バッファ域、9・・・バッフ
ァ管理ルーチン、10・・・CCW及びバッファ作成部
、11・・・バッファ後処理ルーチン、12・・・計数
処理部、13・・・チャネル・インターフェイス制御ル
ーチン。 特許出願人 富士通株式会社 代理人弁理士 京 谷 四 部
Figure 1 is a diagram showing an overview of the system configuration, Figure 2 is a diagram explaining a conventional example of a method for calculating the number of input data of an input buffer,
FIG. 3 is a diagram illustrating the configuration of an embodiment of the present invention, FIG. 4 is a diagram illustrating the configuration of a buffer to which the present invention is applied, and FIG. 5 is a diagram illustrating an algorithm for calculating the number of input data according to the present invention. , FIG. 6 is a diagram illustrating the flow of data reading processing to which the present invention is applied. 1... CPU, 2... Channel device, 3... Input/output control device, 4... Memory, 5-1 to 5-5...
・Input buffer, 6-1 to 6-5...CCW-,
7...C5W1S...Buffer area, 9...Buffer management routine, 10...CCW and buffer creation section, 11...Buffer post-processing routine, 12...Counting processing section, 13... Channel interface control routine. Patent Applicant: Fujitsu Limited Representative Patent Attorney Yotsube Kyotani

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置とチャネル装置と入出力制御装置とを備え
、上記中央処理装置の記憶部に用意された一定の大きさ
の複数個がリンクされた入力バッファに対し、データー
チェインされたチャネル書コマンド語により上記チャネ
ル装置を経由して上記入出力制御装置からの入力データ
が読み込まれた際、全入力データ長を求めるようになっ
た入力バッファの全入力データ長計数方式であって、上
記中央処理装置は、上記入力バッファに番号設定部を設
けてデータ読み込みのだめの上記チャネル・コマンド語
と上記入力バッファを作成するときに上記入力バッファ
にリンクの順序に従って番号を設定すると共に、該番号
の設定位置と当該入カバソファのデータ格納域の大きさ
とを記憶しておき、且つ、入力データを上記人力バッフ
ァに読み込む際、上記チャネル装置が、チャネル・コマ
ンド語を上記中央処理装量から読み込んでチャネル・コ
マンド語を実行し、該実行する毎にチャネル装置内に設
けられたチャネル状態語のチャネルの終了状態や残りの
バイト・カウント力どのチャネルの情報を書き替え、入
力すべきデータがなくなると、その時のチャネル状態語
の情報を上記中央処理装置の主記憶域に設けられたチャ
ネル状態語に設定した後上記チャネル装置から上記中央
処理装置に終了割込みがかけられると、上記中央処理装
置は、最終使用入力バッファの上記番号の設定位置の番
号を読み取り、該読み取った番号に上記データ格納域の
大きさの値を乗じ、該乗じて得られた値から上記残りの
バイト・カウントを減じて全入力データ長を計数する演
算処理を行うように構成されたことを特徴とする入力バ
ッファの全入力データ長計数方式。
It is equipped with a central processing unit, a channel device, and an input/output control device, and sends a data chained channel written command word to an input buffer of a fixed size, which is prepared in the storage unit of the central processing unit and is linked to a plurality of input buffers. A method for counting the total input data length of an input buffer that calculates the total input data length when input data from the input/output control device is read via the channel device, and the central processing unit provides a number setting part in the input buffer, and when creating the channel command word for reading data and the input buffer, sets a number in the input buffer according to the link order, and also sets the setting position of the number. The size of the data storage area of the input buffer is memorized, and when input data is read into the manual buffer, the channel device reads a channel command word from the central processing unit and reads the channel command word. is executed, and each time it is executed, information on the channel such as the end status of the channel, remaining byte count, etc. in the channel status word provided in the channel device is rewritten, and when there is no more data to be input, the current channel When a termination interrupt is issued from the channel device to the central processing unit after setting the status word information in the channel status word provided in the main storage area of the central processing unit, the central processing unit stores the last used input buffer. Read the number at the setting position of the above number, multiply the read number by the value of the size of the data storage area, and subtract the remaining byte count from the multiplied value to obtain the total input data length. A total input data length counting method for an input buffer, characterized in that the input buffer is configured to perform counting calculation processing.
JP5310883A 1983-03-29 1983-03-29 Counting system of length of all input data in input buffer Granted JPS59177634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5310883A JPS59177634A (en) 1983-03-29 1983-03-29 Counting system of length of all input data in input buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5310883A JPS59177634A (en) 1983-03-29 1983-03-29 Counting system of length of all input data in input buffer

Publications (2)

Publication Number Publication Date
JPS59177634A true JPS59177634A (en) 1984-10-08
JPS6240745B2 JPS6240745B2 (en) 1987-08-29

Family

ID=12933593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5310883A Granted JPS59177634A (en) 1983-03-29 1983-03-29 Counting system of length of all input data in input buffer

Country Status (1)

Country Link
JP (1) JPS59177634A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009205366A (en) * 2008-02-27 2009-09-10 Fujitsu Ltd Channel device, information processing system, and data transfer method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009205366A (en) * 2008-02-27 2009-09-10 Fujitsu Ltd Channel device, information processing system, and data transfer method
US8769167B2 (en) 2008-02-27 2014-07-01 Fujitsu Limited Channel device, information processing system and data transfer method

Also Published As

Publication number Publication date
JPS6240745B2 (en) 1987-08-29

Similar Documents

Publication Publication Date Title
JPS59177634A (en) Counting system of length of all input data in input buffer
JPH0221619B2 (en)
JPH0798663A (en) Asynchronous i/o control system
JPS6040064B2 (en) Data transfer control method
JP3022011B2 (en) Data backup system
JP3293838B2 (en) Data transfer method
JPH05289847A (en) Ring buffer control device
JPH10283231A (en) Data processor
JPS60178547A (en) Data processing system
JPS608965A (en) Input/output buffer memory system
JP3168845B2 (en) Digital signal processor
JPH0380353A (en) Interruption processing method and data channel device
JPS6336021B2 (en)
JPS5968033A (en) Outputting method to external device
JPH0436412B2 (en)
CN109582727A (en) A kind of the client's access method and relevant apparatus of storage system
JPH01286053A (en) Data control system over plural types of computers
JPH0225944A (en) Data converting device
JPH0192839A (en) Memory read interface circuit
JPH02287661A (en) Data access system
JPS598041A (en) Input and output controller
JPS61156454A (en) Data transfer control device
JPS62144262A (en) Data input and output device
JPS61190603A (en) Multiprogrammable control device
JPS6048563A (en) Channel control system