Skip to content

Instantly share code, notes, and snippets.

View mathemandy's full-sized avatar
🏠
Working from home

Andy Eshiet mathemandy

🏠
Working from home
View GitHub Profile
@mathemandy
mathemandy / list_examples.c
Created October 1, 2020 09:01
examples on how to use the Linux Kernel list
#include "list.h"
#include "stdlib.h"
#include "stdio.h"
#include "stddef.h"
typedef struct component {
int id;
// This is used to link components together in their list
struct list_head list_node;