cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

iscsi_target.h (2576B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef ISCSI_TARGET_H
      3#define ISCSI_TARGET_H
      4
      5#include <linux/types.h>
      6#include <linux/spinlock.h>
      7
      8struct iscsit_cmd;
      9struct iscsit_conn;
     10struct iscsi_np;
     11struct iscsi_portal_group;
     12struct iscsit_session;
     13struct iscsi_tpg_np;
     14struct kref;
     15struct sockaddr_storage;
     16
     17extern struct iscsi_tiqn *iscsit_get_tiqn_for_login(unsigned char *);
     18extern struct iscsi_tiqn *iscsit_get_tiqn(unsigned char *, int);
     19extern void iscsit_put_tiqn_for_login(struct iscsi_tiqn *);
     20extern struct iscsi_tiqn *iscsit_add_tiqn(unsigned char *);
     21extern void iscsit_del_tiqn(struct iscsi_tiqn *);
     22extern int iscsit_access_np(struct iscsi_np *, struct iscsi_portal_group *);
     23extern void iscsit_login_kref_put(struct kref *);
     24extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *,
     25				struct iscsi_tpg_np *);
     26extern bool iscsit_check_np_match(struct sockaddr_storage *,
     27				struct iscsi_np *, int);
     28extern struct iscsi_np *iscsit_add_np(struct sockaddr_storage *,
     29				int);
     30extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
     31				struct iscsi_portal_group *, bool);
     32extern int iscsit_del_np(struct iscsi_np *);
     33extern int iscsit_reject_cmd(struct iscsit_cmd *cmd, u8, unsigned char *);
     34extern void iscsit_set_unsolicited_dataout(struct iscsit_cmd *);
     35extern int iscsit_logout_closesession(struct iscsit_cmd *, struct iscsit_conn *);
     36extern int iscsit_logout_closeconnection(struct iscsit_cmd *, struct iscsit_conn *);
     37extern int iscsit_logout_removeconnforrecovery(struct iscsit_cmd *, struct iscsit_conn *);
     38extern int iscsit_send_async_msg(struct iscsit_conn *, u16, u8, u8);
     39extern int iscsit_build_r2ts_for_cmd(struct iscsit_conn *, struct iscsit_cmd *, bool recovery);
     40extern void iscsit_thread_get_cpumask(struct iscsit_conn *);
     41extern int iscsi_target_tx_thread(void *);
     42extern int iscsi_target_rx_thread(void *);
     43extern int iscsit_close_connection(struct iscsit_conn *);
     44extern int iscsit_close_session(struct iscsit_session *, bool can_sleep);
     45extern void iscsit_fail_session(struct iscsit_session *);
     46extern void iscsit_stop_session(struct iscsit_session *, int, int);
     47extern int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *, int);
     48
     49extern struct iscsit_global *iscsit_global;
     50extern const struct target_core_fabric_ops iscsi_ops;
     51
     52extern struct kmem_cache *lio_dr_cache;
     53extern struct kmem_cache *lio_ooo_cache;
     54extern struct kmem_cache *lio_qr_cache;
     55extern struct kmem_cache *lio_r2t_cache;
     56
     57extern struct ida sess_ida;
     58extern struct mutex auth_id_lock;
     59
     60#endif   /*** ISCSI_TARGET_H ***/