/* The number of empty mto buffers that can be contained in a single sccb. */ #define NR_EMPTY_MSG_PER_SCCB ((PAGE_SIZE - sizeof(struct sclp_buffer) - \ sizeof(struct sccb_header)) / sizeof(struct msg_buf))
/* * data structure for information about list of SCCBs (only for writing), * will be located at the end of a SCCBs page
*/ struct sclp_buffer { struct list_head list; /* list_head for sccb_info chain */ struct sclp_req request; void *sccb; struct msg_buf *current_msg; char *current_line; int current_length; int retry_count; /* output format settings */ unsignedshort columns; unsignedshort htab; /* statistics about this buffer */ unsignedint char_sum; /* # chars in sccb */ unsignedint messages; /* # messages in sccb */ /* Callback that is called after reaching final status. */ void (*callback)(struct sclp_buffer *, int);
};
int sclp_rw_init(void); struct sclp_buffer *sclp_make_buffer(void *, unsignedshort, unsignedshort); void *sclp_unmake_buffer(struct sclp_buffer *); int sclp_buffer_space(struct sclp_buffer *); int sclp_write(struct sclp_buffer *buffer, constunsignedchar *, int); int sclp_emit_buffer(struct sclp_buffer *,void (*)(struct sclp_buffer *,int)); unsignedint sclp_chars_in_buffer(struct sclp_buffer *);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.