函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\usb.h Create Date:2022-07-27 13:51:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sb_make_path - returns stable device path in the usb tree*@dev: the device whose path is being constructed*@buf: where to put the string*@size: how big is "buf"?* Return: Length of the string (> 0) or negative if size was too small

函数原型:static inline int usb_make_path(struct usb_device *dev, char *buf, size_t size)

返回类型:int

参数:

类型参数名称
struct usb_device *dev
char *buf
size_tsize
914  actual等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
916  返回:如果actual大于等于size则负1否则actual