Patent ID: 7870558
Filing Date: 2011-01-11
Classification: G06F

Abstract:
1. A method for passing a reference to a resource, the method comprising: establishing a connection, using an interprocess communication executing in a kernel of an operating system executing on a computer, between a sending process operating in a user mode of the operating system in possession of a reference to a resource and a receiving process operating in the user mode of the operating system to which the reference is to be passed, wherein the reference is a handle to an object representing the resource; initializing, using the sending process, a first buffer associated with the sending process, the first buffer comprising the reference and information associated with the reference, wherein the information comprises a type of the resource referenced by the reference and whether to allow a duplicate of the reference to be inherited by a new process created by the receiving process after the duplicate of the reference is passed to the receiving process, the type of the resource includes at least one of a file object and a synchronization object; when the connection has been established, determining, using the interprocess communication, whether the reference to the resource is acceptable to the receiving process, wherein the determining comprises receiving an indication from the receiving process of a type of resource acceptable to the receiving process, determining whether the type of the resource referenced by the reference is acceptable to the receiving process, and whether the receiving process is associated with a second buffer comprising space to receive the reference; and when it is determined that the reference is acceptable by the receiving process, passing, using the kernel, through the connection a duplicate of the acceptable reference and a duplicate of the information associated with the reference to the second buffer of the receiving process.