Method and system for controlling peripheral device interface behavior using thread registration
First Claim
Patent Images
1. A method of operating a peripheral device within a computer system, said method comprising:
- constructing a thread for servicing said peripheral device;
determining whether or not said peripheral device is of a type for which thread registration is desired;
in response to a determination that said peripheral device is of a type for which thread registration is desired, registering a thread identifier of said thread and peripheral device information associated with said peripheral device in a thread registry;
in response to a communication initiated from said thread, retrieving said peripheral device information by obtaining a current thread identifier and accessing said thread registry using said current thread identifier; and
communicating with said peripheral device using said retrieved peripheral device information.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and system for controlling peripheral device interface behavior based on thread type registration provides simplicity and code reusability within a diagnostics program. When the diagnostics program is initialized, it constructs threads to test or service each of multiple peripheral devices. By registering a thread type for at least some of the threads, the type of adapter can be determined during thread execution via a table look-up. This allows multiple layers of interface code to be reused for different physical adapter interfaces.
30 Citations
18 Claims
-
1. A method of operating a peripheral device within a computer system, said method comprising:
-
constructing a thread for servicing said peripheral device;
determining whether or not said peripheral device is of a type for which thread registration is desired;
in response to a determination that said peripheral device is of a type for which thread registration is desired, registering a thread identifier of said thread and peripheral device information associated with said peripheral device in a thread registry;
in response to a communication initiated from said thread, retrieving said peripheral device information by obtaining a current thread identifier and accessing said thread registry using said current thread identifier; and
communicating with said peripheral device using said retrieved peripheral device information. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for operating a peripheral device within a computer system, said computer program product comprising:
-
program code means for constructing a thread for servicing said peripheral device;
program code means for determining whether or not said peripheral device is of a type for which thread registration is desired;
program code means for registering a thread identifier of said thread and peripheral device information associated with said peripheral device in a thread registry, in response to a determination that said peripheral device is of a type for which thread registration is desired;
program code means for retrieving said peripheral device information by obtaining a current thread identifier and accessing said thread registry using said current thread identifier, in response to a communication initiated from said thread; and
program code means for communicating with said peripheral device using said retrieved peripheral device information. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer system comprising:
-
a plurality of peripheral devices for which diagnostic or control functions are required;
means for constructing a thread for servicing a given one of said plurality of peripheral devices, wherein said constructing means registers a thread identifier of said thread and peripheral device information associated with said peripheral device in a thread registry, wherein said constructing means determines whether or not said peripheral device is of a type for which thread registration is desired, wherein said constructing means registers said thread in response to a determination that said peripheral device is of a type for which thread registration is desired; and
means for communicating with said given peripheral device using said peripheral device information, wherein thread handler retrieves said peripheral device information by obtaining a current thread identifier and accesses said thread registry using said current thread identifier. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification