Invention Grant
- Patent Title: System and method of a shared memory allocator
-
Application No.: US16516995Application Date: 2019-07-19
-
Publication No.: US11023299B2Publication Date: 2021-06-01
- Inventor: Stuart Ritchie , Sebastian Sapa , Christopher Neilson , Eric Secules , Peter Edwards
- Applicant: Arista Networks, Inc.
- Applicant Address: US CA Santa Clara
- Assignee: Arista Networks, Inc.
- Current Assignee: Arista Networks, Inc.
- Current Assignee Address: US CA Santa Clara
- Agency: Fountainhead Law Group P.C.
- Main IPC: G06F9/54
- IPC: G06F9/54 ; G06F9/50 ; G06F13/16 ; G06F9/445

Abstract:
A method and apparatus of a network device that allocates a shared memory buffer for an object is described. In an exemplary embodiment, the network device receives an allocation request for the shared memory buffer for the object. In addition, the network device allocates the shared memory buffer from shared memory of a network device, where the shared memory buffer is accessible by a writer and a plurality of readers. The network device further returns a writer pointer to the writer, where the writer pointer references a base address of the shared memory buffer. Furthermore, the network device stores the object in the shared memory buffer, wherein the writer accesses the shared memory using the writer pointer. The network device further shares the writer pointer with at least a first reader of the plurality of readers. The network device additionally translates the base address of the shared memory buffer to a reader pointer, where the reader pointer is expressed in a memory space of the first reader.
Information query