📄 genhd.h
字号:
#ifndef _COMPAT_GENHD_H
#define _COMPAT_GENHD_H
#include <linux/version.h>
#include_next <linux/genhd.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10))
static inline void add_gendisk(struct gendisk *gd)
{
gd->next = gendisk_head;
gendisk_head = gd;
}
static inline void del_gendisk(struct gendisk *gd)
{
struct gendisk *od, **gdp;
for (gdp = &gendisk_head; *gdp; gdp = &((*gdp)->next))
if (*gdp == gd) {
od = *gdp; *gdp = od->next;
break;
}
}
#endif
#endif /* _COMPAT_GENHD_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -