1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef __LINUX_FUNCTIONFS_H__ 1 #ifndef __LINUX_FUNCTIONFS_H__ 3 #define __LINUX_FUNCTIONFS_H__ 1 2 #define __LINUX_FUNCTIONFS_H__ 1 4 3 5 #include <uapi/linux/usb/functionfs.h> 4 #include <uapi/linux/usb/functionfs.h> >> 5 >> 6 >> 7 struct ffs_data; >> 8 struct usb_composite_dev; >> 9 struct usb_configuration; >> 10 >> 11 >> 12 static int functionfs_init(void) __attribute__((warn_unused_result)); >> 13 static void functionfs_cleanup(void); >> 14 >> 15 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev) >> 16 __attribute__((warn_unused_result, nonnull)); >> 17 static void functionfs_unbind(struct ffs_data *ffs) >> 18 __attribute__((nonnull)); >> 19 >> 20 static int functionfs_bind_config(struct usb_composite_dev *cdev, >> 21 struct usb_configuration *c, >> 22 struct ffs_data *ffs) >> 23 __attribute__((warn_unused_result, nonnull)); >> 24 >> 25 >> 26 static int functionfs_ready_callback(struct ffs_data *ffs) >> 27 __attribute__((warn_unused_result, nonnull)); >> 28 static void functionfs_closed_callback(struct ffs_data *ffs) >> 29 __attribute__((nonnull)); >> 30 static void *functionfs_acquire_dev_callback(const char *dev_name) >> 31 __attribute__((warn_unused_result, nonnull)); >> 32 static void functionfs_release_dev_callback(struct ffs_data *ffs_data) >> 33 __attribute__((nonnull)); >> 34 6 35 7 #endif 36 #endif 8 37
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.