Method, system, and program for managing shared resources
First Claim
Patent Images
1. A method, comprising:
- setting a request flag in a lock logic associated with a shared resource of a device;
reading a grant flag set in response to said request flag in said lock logic; and
using said shared resource in response to said set grant flag.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are a method, system, and program for managing shared resources such as, for example, a transport offload engine of a network adapter having a plurality of ports and a driver for each port. Lock logic permits each driver or other user to set a flag to request use of the shared resource. A grant flag may be set by the lock logic if no other user is using the shared resource. The shared resource may be released following completion of an operation by setting a clear flag in the lock logic for the shared resource.
-
Citations
48 Claims
-
1. A method, comprising:
-
setting a request flag in a lock logic associated with a shared resource of a device;
reading a grant flag set in response to said request flag in said lock logic; and
using said shared resource in response to said set grant flag. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. An article comprising a storage medium, the storage medium comprising machine readable instructions stored thereon to:
-
set a request flag in a lock logic associated with a shared resource of a device;
read a grant flag set in response to said request flag in said lock logic; and
use said shared resource in response to said set grant flag. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. A system for use with a network, comprising:
-
at least one memory which includes an operating system;
a processor coupled to the memory;
data storage;
a data storage controller for managing Input/Output (I/O) access to the data storage;
a network adapter having a shared resource and a lock logic for said shared resource; and
a first device driver executable by the processor in the memory, wherein the device driver is adapted to;
set a request flag in the lock logic;
read a grant flag set in response to said request flag in said lock logic; and
use said shared resource in response to said set grant flag. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34)
-
-
35. A network adapter for use with a network and a plurality of network adapter drivers, comprising:
-
a shared resource adapted to be used by said plurality of drivers; and
lock logic means for allocating usage of said shared resource by said plurality of drivers, said lock logic means having a plurality of channels, each channel having;
request flag register means for storing a request flag set by a driver requesting use of said shared resource; and
grant flag register means, responsive to a request flag set by a driver in said request flag register means, for setting a grant flag in said grant flag register means if another grant flag has not been concurrently set for another channel, to indicate that the shared resource may be used by the requesting driver. - View Dependent Claims (36, 37, 38, 39, 40, 41)
-
-
42. A network adapter for use with a network and a plurality of network adapter drivers, comprising:
-
a shared resource adapted to be used by said plurality of drivers; and
lock logic having a plurality of channels, each channel having;
a request flag register adapted to store a request flag set by a driver requesting use of said shared resource; and
a grant flag register adapted to in response to a request flag set by a driver in said request flag register, set a grant flag in said grant flag register if another grant flag has not been concurrently set for another channel, to indicate that the shared resource may be used by the requesting driver. - View Dependent Claims (43, 44, 45, 46, 47, 48)
-
Specification