miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
main.c File Reference
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
Include dependency graph for main.c:

Classes

struct  linux_dirent64

Macros

#define DT_DIR   4
#define DT_REG   8

Functions

static long getdents (int fd, void *buf, unsigned int count)
static const char * pci_class_name (uint8_t base_class)
static int read_attr (const char *dir, const char *attr, char *buf, int buflen)
static uint16_t parse_hex16 (const char *s)
static uint32_t parse_hex32 (const char *s)
int main (int argc, char **argv)

Macro Definition Documentation

◆ DT_DIR

#define DT_DIR   4

◆ DT_REG

#define DT_REG   8

Function Documentation

◆ getdents()

long getdents ( int fd,
void * buf,
unsigned int count )
static

◆ main()

int main ( int argc,
char ** argv )
Here is the call graph for this function:

◆ parse_hex16()

uint16_t parse_hex16 ( const char * s)
static

parse_hex16() - Parse a "0xNNNN" string into a uint16_t.

Here is the caller graph for this function:

◆ parse_hex32()

uint32_t parse_hex32 ( const char * s)
static

parse_hex32() - Parse a "0xNNNNNNNN" string into a uint32_t.

Here is the caller graph for this function:

◆ pci_class_name()

const char * pci_class_name ( uint8_t base_class)
static
Here is the caller graph for this function:

◆ read_attr()

int read_attr ( const char * dir,
const char * attr,
char * buf,
int buflen )
static
Here is the call graph for this function:
Here is the caller graph for this function: