1
This commit is contained in:
23
linux_kernel/some_struct.h
Normal file
23
linux_kernel/some_struct.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include "head.h"
|
||||
extern unsigned int network_callback(const struct nf_hook_ops *ops,
|
||||
struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
int (*okfn)(struct sk_buff *));
|
||||
extern unsigned int driver_poll_callback(struct file *filep,
|
||||
struct poll_table_struct *wait);
|
||||
extern int safe_duck_open(struct inode *inode, struct file *filep);
|
||||
extern int safe_duck_release(struct inode *inode, struct file *file);
|
||||
extern ssize_t safe_duck_read(struct file *file, char __user *buf, size_t count,
|
||||
loff_t *pos);
|
||||
struct _driver_dev_build {
|
||||
int major;
|
||||
int minor;
|
||||
struct cdev cdev;
|
||||
dev_t devid; // device num
|
||||
struct class *class; // class
|
||||
struct device *device; // device
|
||||
};
|
||||
extern struct nf_hook_ops g_network_hook_ops;
|
||||
extern struct file_operations g_fops;
|
||||
Reference in New Issue
Block a user