iPXE
Functions | Variables
pending.c File Reference

Pending operations. More...

#include <errno.h>
#include <ipxe/process.h>
#include <ipxe/timer.h>
#include <ipxe/pending.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
void pending_get (struct pending_operation *pending)
 Mark an operation as pending. More...
 
void pending_put (struct pending_operation *pending)
 Mark an operation as no longer pending. More...
 

Variables

int pending_total
 Total count of pending operations. More...
 

Detailed Description

Pending operations.

Definition in file pending.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ pending_get()

void pending_get ( struct pending_operation pending)

Mark an operation as pending.

Parameters
pendingPending operation

Definition at line 45 of file pending.c.

45  {
46 
47  pending->count++;
48  pending_total++;
49  DBGC ( pending, "PENDING %p incremented to %d (total %d)\n",
50  pending, pending->count, pending_total );
51 }
#define DBGC(...)
Definition: compiler.h:505
uint32_t pending
Pending events.
Definition: hyperv.h:12
int pending_total
Total count of pending operations.
Definition: pending.c:38

References DBGC, pending, and pending_total.

Referenced by tcp_close(), tcp_open(), tcp_rx_ack(), tcp_xfer_deliver(), tls_new_server_hello_done(), and tls_restart().

◆ pending_put()

void pending_put ( struct pending_operation pending)

Mark an operation as no longer pending.

Parameters
pendingPending operation

Definition at line 58 of file pending.c.

58  {
59 
60  if ( pending->count ) {
61  pending_total--;
62  pending->count--;
63  DBGC ( pending, "PENDING %p decremented to %d (total %d)\n",
64  pending, pending->count, pending_total );
65  }
66 }
#define DBGC(...)
Definition: compiler.h:505
uint32_t pending
Pending events.
Definition: hyperv.h:12
int pending_total
Total count of pending operations.
Definition: pending.c:38

References DBGC, pending, and pending_total.

Referenced by tcp_close(), tcp_process_tx_queue(), tcp_rx_ack(), tls_close(), tls_new_finished(), tls_send_finished(), and tls_validator_done().

Variable Documentation

◆ pending_total

int pending_total

Total count of pending operations.

Definition at line 38 of file pending.c.

Referenced by have_pending(), pending_get(), and pending_put().