![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * S390 version 0004 * Copyright IBM Corp. 1999 0005 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), 0006 * Christian Borntraeger (cborntra@de.ibm.com), 0007 */ 0008 0009 #ifndef _ASM_S390_CPCMD_H 0010 #define _ASM_S390_CPCMD_H 0011 0012 /* 0013 * the lowlevel function for cpcmd 0014 */ 0015 int __cpcmd(const char *cmd, char *response, int rlen, int *response_code); 0016 0017 /* 0018 * cpcmd is the in-kernel interface for issuing CP commands 0019 * 0020 * cmd: null-terminated command string, max 240 characters 0021 * response: response buffer for VM's textual response 0022 * rlen: size of the response buffer, cpcmd will not exceed this size 0023 * but will cap the output, if its too large. Everything that 0024 * did not fit into the buffer will be silently dropped 0025 * response_code: return pointer for VM's error code 0026 * return value: the size of the response. The caller can check if the buffer 0027 * was large enough by comparing the return value and rlen 0028 * NOTE: If the response buffer is not in real storage, cpcmd can sleep 0029 */ 0030 int cpcmd(const char *cmd, char *response, int rlen, int *response_code); 0031 0032 #endif /* _ASM_S390_CPCMD_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |