* if the socket data len is > 7, the function returns 8.
*
* Use this function to allocate socket buffers to store iucv message data.
+ *
+ * Returns: Length of the IUCV message.
*/
static inline size_t iucv_msg_length(struct iucv_message *msg)
{
* @state: first iucv sk state
* @state2: second iucv sk state
*
- * Returns true if the socket in either in the first or second state.
+ * Returns: true if the socket is either in the first or second state.
*/
static int iucv_sock_in_state(struct sock *sk, int state, int state2)
{
* iucv_below_msglim() - function to check if messages can be sent
* @sk: sock structure
*
- * Returns true if the send queue length is lower than the message limit.
- * Always returns true if the socket is not connected (no iucv path for
- * checking the message limit).
+ * Returns: true, if either the socket is not connected (no iucv path for
+ * checking the message limit) or if the send queue length is lower
+ * than the message limit.
*/
static inline int iucv_below_msglim(struct sock *sk)
{
* list and the socket data len at index 7 (last byte).
* See also iucv_msg_length().
*
- * Returns the error code from the iucv_message_send() call.
+ * Returns: the return code from the iucv_message_send() call.
*/
static int iucv_send_iprm(struct iucv_path *path, struct iucv_message *msg,
struct sk_buff *skb)
*
* @pathid: path identification number.
* @userdata: 16-bytes of user data.
+ *
+ * Returns: 0 on success, the result of the CP b2f0 IUCV call.
*/
static int iucv_sever_pathid(u16 pathid, u8 *userdata)
{
*
* Internal function used by iucv_message_receive and __iucv_message_receive
* to receive RMDATA data stored in struct iucv_message.
+ *
+ * Returns: 0
*/
static int iucv_message_receive_iprmdata(struct iucv_path *path,
struct iucv_message *msg,
/**
* iucv_init - Allocates and initializes various data structures.
+ *
+ * Returns: 0 on success, return code on failure.
*/
static int __init iucv_init(void)
{