Changeset 50783 in vbox for trunk/include/iprt/linux
- Timestamp:
- Mar 14, 2014 9:57:47 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92804
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/linux/sysfs.h
r44529 r50783 208 208 209 209 /** 210 * Find the path of a device node under /dev, given then device number. 211 * 212 * This function will recursively search under /dev until it finds a device node 213 * matching @a devnum, and store the path into @a pszBuf. The caller may 214 * provide an expected path in pszSuggestion, which will be tried before 215 * searching, but due to the variance in Linux systems it can be hard to always 216 * correctly predict the path. 210 * Check the path of a device node under /dev, given the device number and a 211 * pattern and store the path into @a pszBuf. 217 212 * 218 213 * @returns The length of the returned string on success, -1 and errno on … … 224 219 * @param pszBuf Where to store the path. 225 220 * @param cchBuf The size of the buffer. 226 * @param psz SuggestionThe expected path format of the device node, either227 * absolute or relative to "/dev". (Optional)221 * @param pszPattern The expected path format of the device node, either 222 * absolute or relative to "/dev". 228 223 * @param va Format args. 229 224 */ 230 RTDECL(ssize_t) RTLinuxFindDevicePathV(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, 231 const char *pszSuggestion, va_list va); 232 233 /** 234 * Find the path of a device node under /dev, given the device number. 235 * 236 * This function will recursively search under /dev until it finds a device node 237 * matching @a devnum, and store the path into @a pszBuf. The caller may 238 * provide an expected path in pszSuggestion, which will be tried before 239 * searching, but due to the variance in Linux systems it can be hard to always 240 * correctly predict the path. 225 RTDECL(ssize_t) RTLinuxCheckDevicePathV(dev_t DevNum, RTFMODE fMode, 226 char *pszBuf, size_t cchBuf, 227 const char *pszPattern, va_list va); 228 229 /** 230 * Check the path of a device node under /dev, given the device number and a 231 * pattern and store the path into @a pszBuf. 241 232 * 242 233 * @returns The length of the returned string on success, -1 and errno on … … 248 239 * @param pszBuf Where to store the path. 249 240 * @param cchBuf The size of the buffer. 250 * @param psz SuggestionThe expected path format of the device node, either251 * absolute or relative to "/dev". (Optional)241 * @param pszPattern The expected path format of the device node, either 242 * absolute or relative to "/dev". 252 243 * @param ... Format args. 253 244 */ 254 RTDECL(ssize_t) RTLinuxFindDevicePath(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, 255 const char *pszSuggestion, ...); 245 RTDECL(ssize_t) RTLinuxCheckDevicePath(dev_t DevNum, RTFMODE fMode, 246 char *pszBuf, size_t cchBuf, 247 const char *pszPattern, ...); 256 248 257 249 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.