# US 2013/0254781 A1 · Abstracting special file interfaces to concurrently support multiple operating system levels

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

- Number: US 2013/0254781 A1
- Document ID: US20130254781A1
- Status: Published application
- Kind: A1
- Application number: 13/892,652
- Filed: 2013-05-13
- Published: 2013-09-26
- Earliest claimed: 2010-09-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Luke M. Browning; Mallesh K. Lepakshaiah; Kavitha Ramalingam
- Web page: https://patentgrep.com/patent/US20130254781A1

## CPC

- G06F 13/38: Information transfer, e.g. on bus (G06F13/14 takes precedence)
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some examples include a system, a computer program product, an apparatus, and the like, configured to perform operations to access, in response to a request by a first instance of an operating system, data stored in a memory of a kernel of a second instance of the operating system. The operations are further to determine whether the data stored in the memory of the kernel of the second instance of the operating system is in a data format that is compatible with the first instance of the operating system. The operations are further to provide the data in the data format that is compatible with the first instance of the operating system. For instance, in some examples, the operations are to determine that the data is in a format incompatible with the first instance of the operating system, and reformat the data in the data format compatible with the first instance of the operating system.

## Claims

### Claim 1

A system comprising:
one or more processors; and
a computer readable storage medium having instructions stored thereon, which when executed by the one or more processors cause the one or more processors to perform operations to
access, in response to a request by a first instance of an operating system, data stored in a memory of a kernel of a second instance of the operating system,
determine that the data stored in the memory of the kernel of the second instance of the operating system is in a first data format that is incompatible with the first instance of the operating system,
reformat the data in the first data format with a second data format that is compatible with the first instance of the operating system, and
provide the data in the second data format to the first instance of the operating system.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first instance of the operating system is a first version of the operating system, wherein the second instance of the operating system is a second version of the operating system, and wherein the first data format is compatible with the second version of the operating system.

### Claim 3 (depends on 1)

The system of claim 1, wherein the request to access the data stored in the memory of the kernel of the second instance of the operating system includes a request to access a symbol via a special file of the second instance of the operating system, wherein the special file is configured for accessing the memory of the kernel directly.

### Claim 4 (depends on 3)

The system of claim 3, wherein the special file is one or more of a /dev/kmem special file and a /dev/mem special file.

### Claim 5 (depends on 1)

The system of claim 1, wherein the request to access the data stored in the memory of the kernel of the second instance of the operating system includes a request to access a symbol, and wherein the instructions are further suitable to,
after the request to access the symbol, access a data address stored in an entry for the symbol in a symbol table, and
use the data address to access the data.

### Claim 6 (depends on 5)

The system of claim 5, wherein the instructions are further suitable to,
generate an embedded pointer structure within the symbol table prior to the request to access the symbol,
store a pointer address for an embedded pointer associated with the symbol within the entry,
after receiving the request to access the symbol, identify the pointer address,
use the pointer address to access an embedded pointer entry in the symbol table, wherein the embedded pointer entry includes an offset value that indicates a location within the data that specifies a secondary data address for secondary data associated with the embedded pointer, and
use the secondary data address to access the secondary data structure.

### Claim 7 (depends on 6)

The system of claim 6, wherein the instructions are further suitable to,
generate a cache,
generate a cache entry in the cache that is associated with a process of the first instance of the operating system, wherein the process is used to make the request to access the symbol,
store a process identifier in the cache entry, and
store the secondary data address in the cache entry.

### Claim 8 (depends on 7)

The system of claim 7, wherein the instructions are further suitable to,
store a symbol identifier in the embedded pointer entry before generating the cache,
store the symbol identifier in the cache entry after generating the cache entry, and
use the symbol identifier to relate the embedded pointer entry and the cache entry.

### Claim 9

A computer program product for returning data, stored in a memory of a kernel of a second instance of an operating system, to a first instance of the operating system in a data format compatible with the first instance of the operating system, the computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to,
access, in response to a request by the first instance of the operating system, the data stored in the memory of the kernel of the second instance of the operating system,
determine whether the data stored in the memory of the kernel of the second instance of the operating system is in the data format compatible with the first instance of the operating system, and
return the data to the first instance of the operating system in the data format that is compatible with the first instance of the operating system.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the data is stored in the memory of the kernel of the second instance of the operating system in a data format that is not compatible with the first instance of the operating system, and wherein the computer readable program code is further configured to, prior to returning the data to the first instance of the operating system, format the data in the data format that is compatible with the first instance of the operating system.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the first instance of the operating system is a first version of the operating system, wherein the second instance of the operating system is a second version of the operating system.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the request to access the data stored in the memory of the kernel of a second instance of the operating system includes a request to access a symbol via a special file of the second instance of the operating system, wherein the computer readable program code is further configured to use the special file to access the memory of the kernel directly.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the special file is one or more of a /dev/kmem special file and a /dev/mem special file.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the computer readable program code is further configured to,
after the request to access the symbol, identify a data address for the data in an entry of a symbol table, wherein the entry is associated with the symbol, and
access the data address,
determine that the data stored at the data address is in a data format that is not compatible with the first instance of the operating system, and
perform an operation that reformats the data in the data format that is compatible with the first instance of the operating system.

### Claim 15

An apparatus comprising:
at least one processing unit; and
a computer readable storage medium having instructions stored thereon, which when executed by the at least one processing unit cause the at least one processing unit to perform operations to
access, in response to a request by a first instance of an operating system, data stored in a memory of a kernel of a second instance of the operating system,
determine whether the data stored in the memory of the kernel of the second instance of the operating system is in the data format that is incompatible with the first instance of the operating system, and
return the data to the first instance of the operating system in a data format that is compatible with the first instance of the operating system.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the data is stored in the memory of the kernel of the second instance of the operating system is in the data format that is incompatible with the first instance of the operating system, and wherein the computer readable storage medium has instructions stored thereon, which when executed by the at least one processing unit cause the at least one processing unit to perform operations to, prior to returning the data to the first instance of the operating system, reformat the data from the data format that is incompatible with the first instance of the operating system to the data format that is compatible with the first instance of the operating system.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the first instance of the operating system is a first version of the operating system, wherein the second instance of the operating system is a second version of the operating system.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein the request to access the data stored in the memory of the kernel of the second instance of the operating system includes a request to access a symbol via a special file of the second instance of the operating system, wherein the special file is configured for accessing the memory of the kernel directly.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the special file is one or more of a /dev/kmem special file and a /dev/mem special file.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the computer readable storage medium has instructions stored thereon, which when executed by the at least one processing unit cause the at least one processing unit to perform operations to,
after the request to access the symbol, access a data address stored in an entry for the symbol in a symbol table,
use the data address to access the data,
determine that the data is in the data format that is incompatible with the first instance of the operating system, and
reformat the data in the data formation that is compatible with the first instance of the operating system.
