⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iscsi-task.h

📁 这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的
💻 H
字号:
#ifndef ISCSI_TASK_H_#define ISCSI_TASK_H_/* * iSCSI driver for Linux * Copyright (C) 2001 Cisco Systems, Inc. * maintained by linux-iscsi@cisco.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * See the file COPYING included with this distribution for more details. * * $Id: iscsi-task.h,v 1.2 2002/06/14 21:15:11 smferris Exp $ * * iscsi-task.h * *   define the iSCSI task structure needed by the kernel module *  */#include "iscsi-kernel.h"struct iscsi_session;/* task flags */#define ISCSI_TASK_CONTROL       1#define ISCSI_TASK_WRITE         2#define ISCSI_TASK_READ          3#define ISCSI_TASK_ABORTING      4#define ISCSI_TASK_ABORTED       5#define ISCSI_TASK_INITIAL_R2T   8#define ISCSI_TASK_BAD_DATA      12#define ISCSI_TASK_REJECTED      30#define ISCSI_TASK_RESET_FAILED  31typedef struct iscsi_task {    struct iscsi_task  *volatile order_next;    struct iscsi_task  *volatile order_prev;    struct iscsi_task  *volatile next;    struct iscsi_task  *volatile prev;    Scsi_Cmnd          *volatile scsi_cmnd;    struct iscsi_session    *session;    atomic_t                refcount;    uint32_t                rxdata;    volatile unsigned long  flags;    uint32_t                cmdsn;    uint32_t                itt;    uint32_t                ttt;    uint32_t                mgmt_itt;    unsigned int            data_offset;    int                     data_length;    wait_queue_head_t       wait_q;} iscsi_task_t;typedef struct iscsi_task_collection {    struct iscsi_task  *volatile head;    struct iscsi_task  *volatile tail;} iscsi_task_collection_t;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -