|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "ioforge/ioforge_nic.h"#include "ioforge/ioforge.h"#include "libk/serial.h"#include <type.h>#include "memory/memory_utils.h"#include <str.h>Go to the source code of this file.
Functions | |
| __attribute__ ((used, visibility("default"), section(".export"))) | |
| This function handles memory allocation for a new dentry using the slab allocator. | |
| int | ioforge_receive_pending_queue (struct ioforge_nic_service *nic, struct pending_rx *rx) |
| void | ioforge_clear_rx_queue (struct ioforge_nic_service *nic, struct pending_rx *rx) |
| __attribute__ | ( | (used, visibility("default"), section(".export")) | ) |
This function handles memory allocation for a new dentry using the slab allocator.
It also links the dentry to its corresponding VNode (if provided).
| name | The name of the file or directory. |
| vnode | Pointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available. |
Definition at line 8 of file ioforge_nic.c.
References ioforge_attach(), ioforge_get_root(), IOFORGE_NIC, KERNEL_API, LOG2_DEBUG, ioforge_device::name, ioforge_nic_service::service, and ioforge_device::type.
| void ioforge_clear_rx_queue | ( | struct ioforge_nic_service * | nic, |
| struct pending_rx * | rx ) |
Definition at line 74 of file ioforge_nic.c.
References pending_rx::data, pending_rx::len, ioforge_nic_service::ops, pending_rx::rx_id, and ioforge_nic_operation::storeBufferToPool.
Referenced by socket_receive().
| int ioforge_receive_pending_queue | ( | struct ioforge_nic_service * | nic, |
| struct pending_rx * | rx ) |
Definition at line 55 of file ioforge_nic.c.
References pending_rx::data, pending_rx::len, ioforge_nic_service::pending_queue, PENDING_QUEUE_SIZE, ioforge_nic_service::pq_head, ioforge_nic_service::pq_tail, and pending_rx::rx_id.
Referenced by socket_receive().