__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  iSCSI Transport BSG Interface
 *
 *  Copyright (C) 2009   James Smart, Emulex Corporation
 */

#ifndef SCSI_BSG_ISCSI_H
#define SCSI_BSG_ISCSI_H

/*
 * This file intended to be included by both kernel and user space
 */

#include <scsi/scsi.h>

/*
 * iSCSI Transport SGIO v4 BSG Message Support
 */

/* Default BSG request timeout (in seconds) */
#define ISCSI_DEFAULT_BSG_TIMEOUT      (10 * HZ)


/*
 * Request Message Codes supported by the iSCSI Transport
 */

/* define the class masks for the message codes */
#define ISCSI_BSG_CLS_MASK     0xF0000000      /* find object class */
#define ISCSI_BSG_HST_MASK     0x80000000      /* iscsi host class */

/* iscsi host Message Codes */
#define ISCSI_BSG_HST_VENDOR           (ISCSI_BSG_HST_MASK | 0x000000FF)


/*
 * iSCSI Host Messages
 */

/* ISCSI_BSG_HST_VENDOR : */

/* Request:
 * Note: When specifying vendor_id, be sure to read the Vendor Type and ID
 *   formatting requirements specified in scsi_netlink.h
 */
struct iscsi_bsg_host_vendor {
	/*
	 * Identifies the vendor that the message is formatted for. This
	 * should be the recipient of the message.
	 */
	uint64_t vendor_id;

	/* start of vendor command area */
	uint32_t vendor_cmd[];
};

/* Response:
 */
struct iscsi_bsg_host_vendor_reply {
	/* start of vendor response area */
	DECLARE_FLEX_ARRAY(uint32_t, vendor_rsp);
};


/* request (CDB) structure of the sg_io_v4 */
struct iscsi_bsg_request {
	uint32_t msgcode;
	union {
		struct iscsi_bsg_host_vendor    h_vendor;
	} rqst_data;
} __attribute__((packed));


/* response (request sense data) structure of the sg_io_v4 */
struct iscsi_bsg_reply {
	/*
	 * The completion result. Result exists in two forms:
	 * if negative, it is an -Exxx system errno value. There will
	 * be no further reply information supplied.
	 * else, it's the 4-byte scsi error result, with driver, host,
	 * msg and status fields. The per-msgcode reply structure
	 * will contain valid data.
	 */
	uint32_t result;

	/* If there was reply_payload, how much was received ? */
	uint32_t reply_payload_rcv_len;

	union {
		struct iscsi_bsg_host_vendor_reply      vendor_reply;
	} reply_data;
};


#endif /* SCSI_BSG_ISCSI_H */

Filemanager

Name Type Size Permission Actions
fc Folder 0755
fc_frame.h File 7.03 KB 0644
fcoe_sysfs.h File 3.09 KB 0644
iscsi_if.h File 25.6 KB 0644
iscsi_proto.h File 15.54 KB 0644
iser.h File 2.34 KB 0644
libfc.h File 31.57 KB 0644
libfcoe.h File 13.83 KB 0644
libiscsi.h File 14.59 KB 0644
libiscsi_tcp.h File 3.8 KB 0644
libsas.h File 19.3 KB 0644
sas.h File 12.79 KB 0644
sas_ata.h File 3.22 KB 0644
scsi.h File 5.85 KB 0644
scsi_bsg_iscsi.h File 2.18 KB 0644
scsi_cmnd.h File 10.47 KB 0644
scsi_common.h File 2.68 KB 0644
scsi_dbg.h File 1.96 KB 0644
scsi_device.h File 23.69 KB 0644
scsi_devinfo.h File 3.9 KB 0644
scsi_dh.h File 2.54 KB 0644
scsi_driver.h File 1.18 KB 0644
scsi_eh.h File 1.58 KB 0644
scsi_host.h File 27.17 KB 0644
scsi_ioctl.h File 1.51 KB 0644
scsi_proto.h File 12.62 KB 0644
scsi_status.h File 2.64 KB 0644
scsi_tcq.h File 993 B 0644
scsi_transport.h File 2.55 KB 0644
scsi_transport_fc.h File 27.88 KB 0644
scsi_transport_iscsi.h File 17.27 KB 0644
scsi_transport_sas.h File 6.88 KB 0644
scsi_transport_spi.h File 6.53 KB 0644
scsi_transport_srp.h File 4.81 KB 0644
scsicam.h File 636 B 0644
sg.h File 14.75 KB 0644
srp.h File 6.86 KB 0644
viosrp.h File 5.48 KB 0644
Filemanager