# US 2012/0239833 A1 · Buffer management device, buffer management method, and storage device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0239833 A1
- Document ID: US20120239833A1
- Status: Published application
- Kind: A1
- Application number: 13/285,347
- Filed: 2011-10-31
- Published: 2012-09-20
- Earliest claimed: 2011-03-14
- Assignees: Kabushiki Kaisha Toshiba
- Inventors: Noritsugu YOSHIMURA
- Web page: https://patentgrep.com/patent/US20120239833A1

## CPC

- G06F 3/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0673: {Single storage device}
- G06F 5/065: {Partitioned buffers, e.g. allowing multiple independent queues, bidirectional FIFO's}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to one embodiment, a buffer management device includes a buffer memory, a current-credit retaining module, a reserved-credit retaining module, a transfer controller, and a subtractor. The buffer memory manages a storage area in a credit unit representing a predetermined data size and temporarily stores data transferred from an external device. The current-credit retaining module retains the number of credits currently available for the buffer memory as a current credit value. The transfer controller registers the number of credits necessary to temporarily store the data in the reserved-credit retaining module as a reserved credit value prior to the transfer of the data from the external device to the buffer memory. The subtractor subtracts the reserved credit value registered in the reserved-credit retaining module from the current credit value retained by the current-credit retaining module and outputs a subtraction result as an available credit value.

## Claims

### Claim 1

A buffer management device comprising:
a buffer memory configured to manage a storage area in a credit unit representing a predetermined data size and to temporarily store data transferred from an external device;
a current-credit retaining module configured to retain number of credits currently available for the buffer memory as a current credit value;
a reserved-credit retaining module;
a transfer controller configured to register number of credits necessary to temporarily store the data in the reserved-credit retaining module as a reserved credit value prior to transfer of the data from the external device to the buffer memory; and
a subtractor configured to subtract the reserved credit value registered in the reserved-credit retaining module from the current credit value retained by the current-credit retaining module and to output a subtraction result as an available credit value.

### Claim 2 (depends on 1)

The buffer management device of claim 1, wherein
the current-credit retaining module is configured to subtract the reserved credit value from the current credit value every time data corresponding to the reserved credit value is transferred to the buffer memory and to increment the current credit value by one every time data of the credit unit is output from the buffer memory, and
the reserved-credit retaining module is configured to clear the reserved credit value in response to transfer of the data corresponding to the reserved credit value to the buffer memory.

### Claim 3 (depends on 2)

The buffer management device of claim 2, further comprising an intermediate buffer configured to convert the data transferred from the external device into the credit unit or a unit constituting a credit and to transfer the data to the buffer memory, wherein
the current-credit retaining module is configured to subtract the reserved credit value from the current credit value in response to completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer, and
the reserved-credit retaining module is configured to clear the reserved credit value in response to the completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer.

### Claim 4 (depends on 2)

The buffer management device of claim 2, wherein the current-credit retaining module is configured to decrement the current credit value by one every time data of the credit unit is transferred to the buffer memory.

### Claim 5 (depends on 1)

The buffer management device of claim 1, wherein the transfer controller is configured to determine a data size of the data to be transferred by the external device and the reserved credit value corresponding to the data size based on the available credit value output from the subtractor.

### Claim 6 (depends on 5)

The buffer management device of claim 5, wherein the transfer controller comprises:
a converter configured to convert a data size of data requested to be written by a write command from the external device into a unit system of the credit;
a selector configured to compare the data size converted by the converter and the available credit value and to select a smallest value as the reserved credit value; and
a notification module configured to notify the external device of a transfer ready signal indicating the data size corresponding to the reserved credit value selected by the selector.

### Claim 7 (depends on 6)

The buffer management device of claim 6, wherein the selector is configured to compare the data size converted by the converter, the available credit value, and predetermined maximum number of receivable credits and to select a smallest value as the reserved credit value.

### Claim 8 (depends on 1)

The buffer management device of claim 1, wherein
the transfer controller comprises a plurality of transfer controllers,
the reserved-credit retaining module comprises a plurality of reserved-credit retaining modules,
the transfer controller comprises an arbitrator configured to arbitrate a request to use the available credit value with other transfer controllers and to provide permission to use the available credit value to one of the other transfer controllers, and
the subtractor is configured to subtract a sum of reserved credit values retained by the reserved-credit retaining modules from the current credit value retained by the current-credit retaining module and to output a subtraction result as the available credit value.

### Claim 9 (depends on 1)

The buffer management device of claim 1, wherein the credit is in a unit of data size of one page comprising one sector or a plurality of sectors.

### Claim 10

A storage device comprising:
a connector configured to be connectable to a host device;
a buffer memory configured to manage a storage area in a credit unit representing a predetermined data size and to temporarily store data transferred from the host device;
a storage medium where the data temporarily stored in the buffer memory is to be written;
a current-credit retaining module configured to retain number of credits currently available for the buffer memory as a current credit value;
a reserved-credit retaining module;
a transfer controller configured to register number of credits necessary to temporarily store the data in the reserved-credit retaining module as a reserved credit value prior to transfer of the data from the host device to the buffer memory; and
a subtractor configured to subtract the reserved credit value registered in the reserved-credit retaining module from the current credit value retained by the current-credit retaining module and to output a subtraction result as an available credit value.

### Claim 11 (depends on 10)

The storage device of claim 10, wherein
the current-credit retaining module is configured to subtract the reserved credit value from the current credit value every time data corresponding to the reserved credit value is transferred to the buffer memory and to increment the current credit value by one every time data of the credit unit is output from the buffer memory, and
the reserved-credit retaining module is configured to clear the reserved credit value in response to transfer of the data corresponding to the reserved credit value to the buffer memory.

### Claim 12 (depends on 11)

The storage device of claim 11, further comprising an intermediate buffer configured to convert the data transferred from the host device into the credit unit or a unit constituting a credit and to transfer the data to the buffer memory, wherein
the current-credit retaining module is configured to subtract the reserved credit value from the current credit value in response to completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer, and
the reserved-credit retaining module is configured to clear the reserved credit value in response to the completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer.

### Claim 13 (depends on 10)

The storage device of claim 10, wherein the transfer controller is configured to determine a data size of the data to be transferred by the host device and the reserved credit value corresponding to the data size based on the available credit value output from the subtractor.

### Claim 14 (depends on 10)

The storage device of claim 10, wherein
the transfer controller comprises a plurality of transfer controllers,
the reserved-credit retaining module comprises a plurality of reserved-credit retaining modules,
the transfer controller comprises an arbitrator configured to arbitrate a request to use the available credit value with other transfer controllers and to provide permission to use the available credit value to one of the other transfer controllers, and
the subtractor is configured to subtract a sum of reserved credit values retained by the reserved-credit retaining modules from the current credit value retained by the current-credit retaining module and to output a subtraction result as the available credit value.

### Claim 15

A buffer management method for managing a buffer memory configured to manage a storage area in a credit unit representing a predetermined data size and to temporarily store data transferred from an external device, the buffer management method comprising:
retaining number of credits currently available for the buffer memory as a current credit value in a current-credit retaining module;
registering number of credits necessary to temporarily store the data as a reserved credit value in a reserved-credit retaining module prior to transfer of the data to the buffer memory; and
subtracting the reserved credit value registered in the reserved-credit retaining module from the current credit value retained by the current-credit retaining module and outputting a subtraction result as an available credit value.

### Claim 16 (depends on 15)

The buffer management method of claim 15, wherein the retaining comprises subtracting the reserved credit value from the current credit value every time data corresponding to the reserved credit value is transferred to the buffer memory and to increment the current credit value by one every time data of the credit unit is output from the buffer memory, the buffer management method further comprising
clearing the reserved credit value in response to transfer of the data corresponding to the reserved credit value to the buffer memory.

### Claim 17 (depends on 16)

The buffer management method of claim 16, further comprising converting the data transferred from the external device into the credit unit or a unit constituting a credit and to transfer the data to the buffer memory, wherein
the retaining comprises subtracting the reserved credit value from the current credit value in response to completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer, and
the clearing comprises clearing the reserved credit value in response to the completion of the transfer of the data corresponding to the reserved credit value by the intermediate buffer.

### Claim 18 (depends on 15)

The buffer management method of claim 15, wherein the registering comprises determining a data size of the data to be transferred by the external device and the reserved credit value corresponding to the data size based on the available credit value output at the subtracting.

### Claim 19 (depends on 15)

The buffer management method of claim 15, further comprising arbitrating a request to use the available credit value with other transfer controllers and providing permission to use the available credit value to one of the other transfer controllers, and
the subtracting comprises subtracting a sum of reserved credit values from the current credit value and outputting a subtraction result as the available credit value.
