# US 2003/0200398 A1 · Method and apparatus for emulating shared memory in a storage controller

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

- Number: US 2003/0200398 A1
- Document ID: US20030200398A1
- Status: Published application
- Kind: A1
- Application number: 10/124,072
- Filed: 2002-04-17
- Published: 2003-10-23
- Earliest claimed: 2002-04-17
- Assignees: International Business Machines Corporation
- Inventors: Kenneth M. Harris
- Web page: https://patentgrep.com/patent/US20030200398A1

## CPC

- G06F 11/2092: {Techniques of failing over between control units}
- G06F 3/0601: {Interfaces specially adapted for storage systems}
- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/5016: {the resource being the memory}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus is disclosed wherein a first structure in a memory of a controller for sharing information is defined and a hidden structure containing control information for sharing information with the first defined structure is created. Data is synchronized between controllers so that firmware development is simplified. The user defines a structure and through the use of macro calls makes that structure shared. Lock rules are provided, to perform synchronization and buffer management. Failover and failback are also addressed to provide a comprehensive solution for sharing work and information between controllers. Accordingly, the emulated shared memory mechanism allows a programmer to define a structure that contains information for sharing without having to reinvent firmware when new features are added to a storage controller.

## Claims

### Claim 1

A method for emulating shared memory in a storage controller, comprising:
defining a first structure in a memory of a controller for sharing information; and
creating a hidden structure containing control information for sharing information with the first defined structure.

### Claim 2 (depends on 1)

The method of claim 1 wherein the creating further comprises preparing the hidden structure using macro calls.

### Claim 3 (depends on 1)

The method of claim 1 further comprising maintaining coherency by locking access to information in the hidden structure.

### Claim 4 (depends on 3)

The method of claim 3 wherein the locking access to the shared information comprises using a lock structure, the lock structure locking data in the hidden structure.

### Claim 5 (depends on 1)

The method of claim 1 further comprising allowing access to current shared information by furnishing a grant.

### Claim 6 (depends on 5)

The method of claim 5 wherein the grant allows data to be copied from the hidden structure when the first defined structure does not contain the most current copy of the data.

### Claim 7 (depends on 6)

The method of claim 6 wherein the grant is released after the data is accessed via the grant.

### Claim 8 (depends on 6)

The method of claim 6 wherein the data is copied from the first defined structure to another controller before another grant is provided.

### Claim 9 (depends on 1)

The method of claim 1 wherein the sharing of information is facilitated using callback functions.

### Claim 10 (depends on 9)

The method of claim 9 wherein execution of the callback function grants a lock of the first structure to the second controller.

### Claim 11 (depends on 10)

The method of claim 10 wherein the lock granted to the second controller includes read locks.

### Claim 12 (depends on 10)

The method of claim 10 wherein the lock granted to the second controller includes write locks.

### Claim 13 (depends on 1)

The method of claim 1 wherein the sharing of information is facilitated using semaphores.

### Claim 14 (depends on 13)

The method of claim 13 wherein a queued request by the second controller f or the semaphore locks the semaphore to the second controller.

### Claim 15

A storage controller for controlling a data storage system, said data storage system having a plurality of data storage devices for storing data, said controller comprising:
a programmable processor for controlling the operation of said plurality of data storage devices; and
memory for containing status information and data maintained by said control program;
wherein the processor defines a first structure in the memory for sharing information and creates a hidden structure in the memory containing control information for sharing information with the first defined structure.

### Claim 16 (depends on 15)

The storage controller of claim 15 wherein the hidden structure is hidden from view and shared using macro calls.

### Claim 17 (depends on 15)

The storage controller of claim 15 wherein the processor maintains coherency of the defined structure and the hidden structure by locking access to information in the hidden structure.

### Claim 18 (depends on 17)

The storage controller of claim 17 wherein the processor further includes a lock structure, the lock structure locking data in the hidden structure.

### Claim 19 (depends on 15)

The storage controller of claim 15 wherein the processor provides a grant to a user to allow access to current shared information.

### Claim 20 (depends on 19)

The storage controller of claim 19 wherein the grant allows data to be copied from the hidden structure when the first defined structure does not contain the most current copy of the data.

### Claim 21 (depends on 20)

The storage controller of claim 20 wherein the grant is released after the data is accessed via the grant.

### Claim 22 (depends on 20)

The storage controller of claim 20 wherein the processor copies data from the first defined structure to another controller before providing another grant.

### Claim 23 (depends on 15)

The storage controller of claim 15 wherein the processor shares information using callback functions.

### Claim 24 (depends on 23)

The storage controller of claim 23 wherein the processor executes the callback function by granting a lock of the first structure to a second controller.

### Claim 25 (depends on 15)

The storage controller of claim 15 wherein the processor shares information using semaphores.

### Claim 26 (depends on 25)

The storage controller of claim 25 wherein a queued request by a second controller for a semaphore locks a semaphore to the second controller.

### Claim 27

An article of manufacture comprising a program storage medium readable by a computer, the medium tangibly embodying one or more programs of instructions executable by the computer to perform a method for emulating shared memory in a storage controller, the method comprising:
defining a first structure in a memory of a controller for sharing information; and
creating a hidden structure containing control information for sharing information with the first defined structure.

### Claim 28 (depends on 27)

The article of manufacture of claim 27 wherein the sharing of information is facilitated using callback functions.

### Claim 29 (depends on 27)

The article of manufacture of claim 27 wherein the sharing of information is facilitated using semaphores.
