mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net/tipc: fix all function Return: notation
Fix Return: kernel-doc notation in all net/tipc/ source files. Also keep ReST list notation intact for output formatting. Fix a few typos in comments. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f172f4b81a
commit
637b77fdca
9 changed files with 68 additions and 68 deletions
|
@ -60,7 +60,7 @@ static unsigned int align(unsigned int i)
|
|||
* @size: message size (including TIPC header)
|
||||
* @gfp: memory allocation flags
|
||||
*
|
||||
* Returns a new buffer with data pointers set to the specified size.
|
||||
* Return: a new buffer with data pointers set to the specified size.
|
||||
*
|
||||
* NOTE:
|
||||
* Headroom is reserved to allow prepending of a data link header.
|
||||
|
@ -209,8 +209,9 @@ err:
|
|||
* @m: the data to be appended
|
||||
* @mss: max allowable size of buffer
|
||||
* @dlen: size of data to be appended
|
||||
* @txq: queue to appand to
|
||||
* Returns the number og 1k blocks appended or errno value
|
||||
* @txq: queue to append to
|
||||
*
|
||||
* Return: the number of 1k blocks appended or errno value
|
||||
*/
|
||||
int tipc_msg_append(struct tipc_msg *_hdr, struct msghdr *m, int dlen,
|
||||
int mss, struct sk_buff_head *txq)
|
||||
|
@ -314,7 +315,7 @@ bool tipc_msg_validate(struct sk_buff **_skb)
|
|||
* @pktmax: max size of a fragment incl. the header
|
||||
* @frags: returned fragment skb list
|
||||
*
|
||||
* Returns 0 if the fragmentation is successful, otherwise: -EINVAL
|
||||
* Return: 0 if the fragmentation is successful, otherwise: -EINVAL
|
||||
* or -ENOMEM
|
||||
*/
|
||||
int tipc_msg_fragment(struct sk_buff *skb, const struct tipc_msg *hdr,
|
||||
|
@ -377,7 +378,7 @@ error:
|
|||
* Note that the recursive call we are making here is safe, since it can
|
||||
* logically go only one further level down.
|
||||
*
|
||||
* Returns message data size or errno: -ENOMEM, -EFAULT
|
||||
* Return: message data size or errno: -ENOMEM, -EFAULT
|
||||
*/
|
||||
int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, int offset,
|
||||
int dsz, int pktmax, struct sk_buff_head *list)
|
||||
|
@ -488,7 +489,7 @@ error:
|
|||
* @msg: message to be appended
|
||||
* @max: max allowable size for the bundle buffer
|
||||
*
|
||||
* Returns "true" if bundling has been performed, otherwise "false"
|
||||
* Return: "true" if bundling has been performed, otherwise "false"
|
||||
*/
|
||||
static bool tipc_msg_bundle(struct sk_buff *bskb, struct tipc_msg *msg,
|
||||
u32 max)
|
||||
|
@ -585,7 +586,7 @@ bundle:
|
|||
* @pos: position in outer message of msg to be extracted.
|
||||
* Returns position of next msg.
|
||||
* Consumes outer buffer when last packet extracted
|
||||
* Returns true when there is an extracted buffer, otherwise false
|
||||
* Return: true when there is an extracted buffer, otherwise false
|
||||
*/
|
||||
bool tipc_msg_extract(struct sk_buff *skb, struct sk_buff **iskb, int *pos)
|
||||
{
|
||||
|
@ -629,7 +630,7 @@ none:
|
|||
* @skb: buffer containing message to be reversed; will be consumed
|
||||
* @err: error code to be set in message, if any
|
||||
* Replaces consumed buffer with new one when successful
|
||||
* Returns true if success, otherwise false
|
||||
* Return: true if success, otherwise false
|
||||
*/
|
||||
bool tipc_msg_reverse(u32 own_node, struct sk_buff **skb, int err)
|
||||
{
|
||||
|
@ -705,7 +706,7 @@ bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy)
|
|||
* @skb: the buffer containing the message.
|
||||
* @err: error code to be used by caller if lookup fails
|
||||
* Does not consume buffer
|
||||
* Returns true if a destination is found, false otherwise
|
||||
* Return: true if a destination is found, false otherwise
|
||||
*/
|
||||
bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue