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

transport_ipc.h (1805B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2/*
      3 *   Copyright (C) 2018 Samsung Electronics Co., Ltd.
      4 */
      5
      6#ifndef __KSMBD_TRANSPORT_IPC_H__
      7#define __KSMBD_TRANSPORT_IPC_H__
      8
      9#include <linux/wait.h>
     10
     11#define KSMBD_IPC_MAX_PAYLOAD	4096
     12
     13struct ksmbd_login_response *
     14ksmbd_ipc_login_request(const char *account);
     15
     16struct ksmbd_session;
     17struct ksmbd_share_config;
     18struct ksmbd_tree_connect;
     19struct sockaddr;
     20
     21struct ksmbd_tree_connect_response *
     22ksmbd_ipc_tree_connect_request(struct ksmbd_session *sess,
     23			       struct ksmbd_share_config *share,
     24			       struct ksmbd_tree_connect *tree_conn,
     25			       struct sockaddr *peer_addr);
     26int ksmbd_ipc_tree_disconnect_request(unsigned long long session_id,
     27				      unsigned long long connect_id);
     28int ksmbd_ipc_logout_request(const char *account, int flags);
     29struct ksmbd_share_config_response *
     30ksmbd_ipc_share_config_request(const char *name);
     31struct ksmbd_spnego_authen_response *
     32ksmbd_ipc_spnego_authen_request(const char *spnego_blob, int blob_len);
     33int ksmbd_ipc_id_alloc(void);
     34void ksmbd_rpc_id_free(int handle);
     35struct ksmbd_rpc_command *ksmbd_rpc_open(struct ksmbd_session *sess, int handle);
     36struct ksmbd_rpc_command *ksmbd_rpc_close(struct ksmbd_session *sess, int handle);
     37struct ksmbd_rpc_command *ksmbd_rpc_write(struct ksmbd_session *sess, int handle,
     38					  void *payload, size_t payload_sz);
     39struct ksmbd_rpc_command *ksmbd_rpc_read(struct ksmbd_session *sess, int handle);
     40struct ksmbd_rpc_command *ksmbd_rpc_ioctl(struct ksmbd_session *sess, int handle,
     41					  void *payload, size_t payload_sz);
     42struct ksmbd_rpc_command *ksmbd_rpc_rap(struct ksmbd_session *sess, void *payload,
     43					size_t payload_sz);
     44void ksmbd_ipc_release(void);
     45void ksmbd_ipc_soft_reset(void);
     46int ksmbd_ipc_init(void);
     47#endif /* __KSMBD_TRANSPORT_IPC_H__ */