Files
dev-tictactoe/tictactoe_internal.h

20 lines
392 B
C

#ifndef __TICTACTOE_INTERNAL_H__
#define __TICTACTOE_INTERNAL_H__
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/types.h>
#include <linux/printk.h>
#include <linux/mutex.h>
#define tictactoe_error(format, ...) \
pr_err("%s: " format, __func__, ##__VA_ARGS__)
typedef struct {
struct mutex lock;
size_t len;
char *buf;
} ttt_astring_t;
#endif // __TICTACTOE_INTERNAL_H__