IP Library Granted Patent US 7,711,946
Granted Patent B2
US 7,711,946 · App. 11/500,804 · Granted May 4, 2010

Method and apparatus for using filesystem operations to initiate device naming

Assignee: Oracle America, Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,711,946
App. No.
11/500,804
Granted
May 4, 2010
Kind
B2
Abstract

One embodiment of the present invention provides a system that uses filesystem operations to initiate device naming and/or device discovery. The system operates by receiving a command to boot a computer system. In response to the command, the system loads a portion of a filesystem hierarchy that includes a device namespace into a memory of the computer system, wherein the portion of the filesystem hierarchy contains at least one entity which represents a device coupled to the computer system. The system can then perform a read-directory operation on the portion of the filesystem hierarchy or a lookup operation of a specific well-known device or directory to obtain a list of filesystem entities that correspond to devices attached to the computer system.

Claims (50)

1. A method for using filesystem operations to initiate device name generation for newly discovered but as of yet unnamed devices, the method comprising:

receiving a command to boot a computer system;

in response to the command, loading a portion of a filesystem hierarchy that includes a device namespace into a memory of the computer system, wherein the portion of the filesystem hierarchy contains at least one entity which represents a device coupled to the computer system, wherein the portion of the filesystem hierarchy serves as a device tree;

intercepting a device lookup call at the filesystem; and

performing a device lookup by performing a read-directory operation on the portion of the filesystem hierarchy to obtain a list of filesystem entities that correspond to devices attached to the computer system, wherein the filesystem performs the device lookup.

2. The method of claim 1 , wherein performing the read-directory operation further involves:

determining if the entity representing the device coupled to the computer system is present in the portion of the filesystem hierarchy; and

if not, creating the entity in the portion of the filesystem hierarchy.

3. The method of claim 1 , further comprising:

receiving a lookup operation at an operating system running on the computer system, wherein the lookup operation includes an entity name as an argument, and wherein the entity name is associated with a second device which is coupled to the computer system; and

performing the lookup operation on the portion of the filesystem hierarchy with the entity name to obtain information associated with the second device.

4. The method of claim 3 , wherein performing the lookup operation further involves:

determining if the entity associated with the entity name is present in the portion of the filesystem hierarchy; and

if not, creating the entity in the portion of the filesystem hierarchy.

5. The method of claim 1 , wherein the read-directory operation is performed to facilitate the discovery of a second device that is coupled to the computer system, but is not represented by an entity in the filesystem.

6. The method of claim 5 , wherein the read-directory operation is performed in the background so that the read-directory operation is transparent to a user who is using the computer system.

7. The method of claim 1 , wherein the read-directory operation is performed if the computer system detects the presence of a new device added to the computer system.

8. The method of claim 1 , wherein the portion of the filesystem hierarchy includes a copy of an operating system device namespace.

9. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for using filesystem operations to initiate device name generation for newly discovered but as of yet unnamed devices, the method comprising:

receiving a command to boot a computer system;

in response to the command, loading a portion of a filesystem hierarchy that includes a device namespace into a memory of the computer system, wherein the portion of the filesystem hierarchy contains at least one entity which represents a device coupled to the computer system, wherein the portion of the filesystem hierarchy serves as a device tree;

intercepting a device lookup call at the file system; and

performing a device lookup by performing a read-directory operation on the portion of the filesystem hierarchy to obtain a list of filesystem entities that correspond to devices attached to the computer system, wherein the filesystem performs the device lookup.

10. The computer-readable storage medium of claim 9 , wherein performing the read-directory operation further involves:

determining if the entity representing the device coupled to the computer system is present in the portion of the filesystem hierarchy; and

if not, creating the entity in the portion of the filesystem hierarchy.

11. The computer-readable storage medium of claim 9 , wherein the method further comprises:

receiving a lookup operation at an operating system running on the computer system, wherein the lookup operation includes an entity name as an argument, and wherein the entity name is associated with a second device which is coupled to the computer system; and

performing the lookup operation on the portion of the filesystem hierarchy with the entity name to obtain information associated with the second device.

12. The computer-readable storage medium of claim 11 , wherein performing the lookup operation further involves:

determining if the entity associated with the entity name is present in the portion of the filesystem hierarchy; and

if not, creating the entity in the portion of the filesystem hierarchy.

13. The computer-readable storage medium of claim 9 , wherein the read-directory operation is performed to facilitate the discovery of a second device that is coupled to the computer system, but is not represented by an entity in the filesystem.

14. The computer-readable storage medium of claim 13 , wherein the read-directory operation is performed in the background so that the read-directory operation is transparent to a user who is using the computer system.

15. The computer-readable storage medium of claim 9 , wherein the read-directory operation is performed if the computer system detects the presence of a new device added to the computer system.

16. The computer-readable storage medium of claim 9 , wherein the portion of the filesystem hierarchy includes a copy of an operating system device namespace.

17. An apparatus configured to use filesystem operations to initiate device name generation for newly discovered but as of yet unnamed devices, comprising:

a receiving mechanism configured to receive a command to boot a computer system;

a loading mechanism configured to load a portion of a filesystem hierarchy that includes a device namespace into a memory of the computer system, wherein the portion of the filesystem hierarchy contains at least one entity which represents a device coupled to the computer system, wherein the portion of the filesystem hierarchy serves as a device tree;

an interception mechanism configured to intercept a device lookup call at the filesystem; and

a read-directory mechanism configured to perform a device lookup by performing a read-directory operation on the portion of the filesystem hierarchy to obtain a list of filesystem entities that correspond to devices attached to the computer system, wherein the read-directory mechanism is part of the filesystem.

18. The apparatus of claim 17 , wherein the read-directory mechanism comprises:

a determination mechanism configured to determine if the entity representing the device coupled to the computer system is present in the portion of the file system hierarchy; and

a creation mechanism configured to create the entity in the portion of the filesystem hierarchy if the entity representing the device coupled to the computer system is not present.

19. The apparatus of claim 17 :

wherein the receiving mechanism is further configured to receive a lookup operation at an operating system running on the computer system, wherein the lookup operation includes an entity name as an argument, and wherein the entity name is associated with a second device which is coupled to the computer system; and

wherein the apparatus further comprises a lookup mechanism configured to perform the lookup operation on the portion of the filesystem hierarchy with the entity name to obtain information associated with the second device.

20. The apparatus of claim 19 , wherein the lookup mechanism comprises:

a determination mechanism configured to determine if the entity associated with the entity name is present in the portion of the filesystem hierarchy; and

a creation mechanism configured to create the entity in the portion of the filesystem hierarchy if the entity representing the device coupled to the computer system is not present.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 16, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037306/0292 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2006
From: GILLIAM, JERRY A.; LAI, YONGHONG; ZHOU, SHUDONG
To: SUN MICROSYSTEMS, INC.
Reel/Frame 018250/0886 →
Continuity (1)
Related Publication 20080034195A1 · Feb 7, 2008