📄 compat-2.6.19-2.6.21.patch
字号:
Index: kernel/event.c===================================================================--- kernel/event.c (working copy)+++ kernel/event.c (revision 122)@@ -95,8 +95,7 @@ int event_send(u32 tid, u64 sid, u32 cid int event_init(void) {- nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, NULL,- THIS_MODULE);+ nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, THIS_MODULE); if (!nl) return -ENOMEM; elseIndex: kernel/iscsi.c===================================================================--- kernel/iscsi.c (working copy)+++ kernel/iscsi.c (revision 137)@@ -1757,7 +1757,8 @@ static int iscsi_init(void) if ((err = event_init()) < 0) goto err; - iscsi_cmnd_cache = KMEM_CACHE(iscsi_cmnd, 0);+ iscsi_cmnd_cache = kmem_cache_create("iscsi_cmnd", sizeof(struct iscsi_cmnd),+ 0, 0, NULL, NULL); if (!iscsi_cmnd_cache) goto err; Index: kernel/tio.c===================================================================--- kernel/tio.c (working copy)+++ kernel/tio.c (revision 137)@@ -110,7 +110,8 @@ int tio_sync(struct iet_volume *lu, stru int tio_init(void) {- tio_cache = KMEM_CACHE(tio, 0);+ tio_cache = kmem_cache_create("tio", sizeof(struct tio),+ 0, 0, NULL, NULL); return tio_cache ? 0 : -ENOMEM; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -