/*1* arch/s390/kernel/cpcmd.h2*3* S390 version4* Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation5* Author(s): Martin Schwidefsky ([email protected]),6* Christian Borntraeger ([email protected]),7*/89#ifndef _ASM_S390_CPCMD_H10#define _ASM_S390_CPCMD_H1112/*13* the lowlevel function for cpcmd14* the caller of __cpcmd has to ensure that the response buffer is below 2 GB15*/16extern int __cpcmd(const char *cmd, char *response, int rlen, int *response_code);1718/*19* cpcmd is the in-kernel interface for issuing CP commands20*21* cmd: null-terminated command string, max 240 characters22* response: response buffer for VM's textual response23* rlen: size of the response buffer, cpcmd will not exceed this size24* but will cap the output, if its too large. Everything that25* did not fit into the buffer will be silently dropped26* response_code: return pointer for VM's error code27* return value: the size of the response. The caller can check if the buffer28* was large enough by comparing the return value and rlen29* NOTE: If the response buffer is not below 2 GB, cpcmd can sleep30*/31extern int cpcmd(const char *cmd, char *response, int rlen, int *response_code);3233#endif /* _ASM_S390_CPCMD_H */343536