Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
ioforge_nic.c File Reference
#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)
 

Function Documentation

◆ __attribute__()

__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).

Note
This function performs lazy initialization of the dentry slab cache if it does not exist yet.
Parameters
nameThe name of the file or directory.
vnodePointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available.
Returns
dentry_ptr A pointer to the newly allocated and initialized dentry.

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.

◆ ioforge_clear_rx_queue()

void ioforge_clear_rx_queue ( struct ioforge_nic_service * nic,
struct pending_rx * rx )

◆ ioforge_receive_pending_queue()