# US 2025/0156353 A1 · Semi-polling input/output completion mode for non-volatile memory express completion queue

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156353 A1
- Document ID: US20250156353A1
- Status: Published application
- Kind: A1
- Application number: 18/592,026
- Filed: 2024-02-29
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Ming JIN; Vadim MAKHERVAKS; Ji DAI; Tengda YAN; Yuan YI; Chuanjun YIN; Scott Chao-Chueh LEE
- Web page: https://patentgrep.com/patent/US20250156353A1

## CPC

- G06F 13/26: with priority control
- G06F 13/22: using successive scanning, e.g. polling (G06F13/24 takes precedence)
- G06F 13/225: {with priority control}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for using a semi-polling model to monitor a Non-Volatile Memory Express (NVMe) completion queue (CQ). The method, implemented at an interrupt thread, includes receiving an input/output (I/O) request from an application and submitting a submission queue (SQ) entry into an NVMe SQ in response to the I/O request. The method further includes registering for notifications from a polling thread after submitting the SQ entry and receiving, from the polling thread, a notification of the presence of a CQ entry within an NVMe CQ. Additionally, the method involves removing the CQ entry from the NVMe CQ and notifying the application of completion of the I/O request.

## Claims

### Claim 1

A method, implemented at an interrupt thread, in a computer system that includes a processor system, comprising:
receiving an input/output (I/O) request from an application;
submitting a submission queue (SQ) entry into a Non-Volatile Memory Express (NVMe) SQ in response to the I/O request;
registering for notifications from a polling thread after submitting the SQ entry;
receiving, from the polling thread, a notification of a presence of a completion queue (CQ) entry within an NVMe CQ;
removing the CQ entry from the NVMe CQ; and
notifying the application of competition of the I/O request.

### Claim 2 (depends on 1)

The method of claim 1, wherein the interrupt thread, the polling thread, and the application operate in user mode.

### Claim 3 (depends on 1)

The method of claim 1, wherein the method further comprises ringing an SQ doorbell after submitting the SQ entry to the NVMe SQ.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method further comprises sleeping after registering for the notification from the polling thread.

### Claim 5 (depends on 1)

The method of claim 1, wherein the method further comprises waking after receiving the notification of the presence of the CQ entry within the NVMe CQ.

### Claim 6 (depends on 1)

The method of claim 1, wherein registering for the notification from the polling thread comprises registering for a software interrupt from the polling thread.

### Claim 7 (depends on 1)

The method of claim 1, wherein receiving the notification of the presence of the CQ entry within the NVMe CQ comprises receiving a software interrupt from the polling thread.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method further comprises the polling thread peeking at the NVMe CQ for the CQ entry, after the interrupt thread has registered for the notifications from the polling thread.

### Claim 9 (depends on 8)

The method of claim 8, wherein the method further comprises the polling thread identifying that the CQ entry is present within the NVMe CQ.

### Claim 10 (depends on 9)

The method of claim 9, wherein the method further comprises the polling thread notifying the interrupt thread of the presence of the CQ entry within the NVMe CQ.

### Claim 11

A computer system implementing an interrupt thread, comprising:
a processor system; and
a computer storage medium that stores computer-executable instructions that are executable by the processor system to at least:
receive an input/output (I/O) request from an application;
submit a submission queue (SQ) entry into a Non-Volatile Memory Express (NVMe) SQ in response to the I/O request;
register, from a polling thread, for notifications after submitting the SQ entry, including registering for a software interrupt from the polling thread;
receive, from the polling thread, a notification of a presence of a completion queue (CQ) entry within an NVMe CQ, including receiving the software interrupt from the polling thread;
remove the CQ entry from the NVMe CQ; and
notify the application of competition of the I/O request.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the interrupt thread, the polling thread, and the application operate in user mode.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the computer-executable instructions are also executable by the processor system to ring an SQ doorbell after submitting the SQ entry to the NVMe SQ.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the computer-executable instructions are also executable by the processor system to sleep after registering for the notification from the polling thread.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the computer-executable instructions are also executable by the processor system to wake after receiving the notification of the presence of the CQ entry within the NVMe CQ.

### Claim 16 (depends on 11)

The computer system of claim 11, wherein the computer-executable instructions are also executable by the processor system to, by the polling thread, peek at the NVMe CQ for the CQ entry, after the interrupt thread has registered for the notifications from the polling thread.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the computer-executable instructions are also executable by the processor system to, by the polling thread:
identify that the CQ entry is present within the NVMe CQ; and
notify the interrupt thread of the presence of the CQ entry within the NVMe CQ.

### Claim 18

A computer storage medium that stores computer-executable instructions that are executable by a processor system to implement at an interrupt thread that is configured to at least:
receive an input/output (I/O) request from an application;
submit a submission queue (SQ) entry into a Non-Volatile Memory Express (NVMe) SQ in response to the I/O request;
register for notifications from a polling thread after submitting the SQ entry, causing the polling thread to,
peek at an NVMe completion queue (CQ) for a CQ entry,
identify that the CQ entry is present within the NVMe CQ, and
send, to the interrupt thread, a notification of a presence of the CQ entry within the NVMe CQ;
receive, from the polling thread, the notification of the presence of the CQ entry within the NVMe CQ;
remove the CQ entry from the NVMe CQ; and
notify the application of competition of the I/O request.

### Claim 19 (depends on 18)

The computer storage medium of claim 18, wherein the computer-executable instructions are also executable by the processor system to ring an SQ doorbell after submitting the SQ entry to the NVMe SQ.

### Claim 20 (depends on 18)

The computer storage medium of claim 18, wherein the computer-executable instructions are also executable by the processor system to sleep after registering for the notification from the polling thread.
