JustForFun
全部博文(241)
发布时间:2020-10-05 23:24:52
fs/目录下的read_write.cSYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, size_t, count){ struct file *file; ssize_t ret = -EBADF; int fput_needed; file = fget_light(fd, &fput_ne.........【阅读全文】
发布时间:2020-10-05 23:23:01
fs/fcntl.c SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg){struct file *filp;long err = -EBADF;filp = fget(fd);if (!filp)goto out;err = security_file_fcntl(filp, cmd, arg);if (err) {fput(filp);return err;}.........【阅读全文】
发布时间:2020-09-04 20:14:25
am8268 usb从机驱动udc笔记 drivers/usb/am7x/am7x_udc.c static int __init am7x_udc_probe(struct platform_device *pdev){ struct aotg_udc *udc ; int retval = 0; struct .........【阅读全文】
发布时间:2020-09-04 01:35:38
系统内核:linux 4.10<drivers/usb/host/isp116x-hcd.c>//见<arch/arm/mach-pxa/viper.c>static struct platform_device isp116x_devicestatic const char hcd_name[] = "isp116x-hcd";module_platform_driver(isp116x_driver);/* work with hotplug and coldplug */MODULE_ALIAS("platform:isp116x-hcd");static .........【阅读全文】
发布时间:2020-09-04 01:32:46
官方网站的驱动可能会更好http://www.wch.cn/download/CH341SER_LINUX_ZIP.htmlch340芯片兼容这个驱动。<drivers/usb/serial/ch341.c> module_usb_serial_driver(serial_drivers, id_table);///////////////////////////////////<include/linux/usb/serial.h>/* * module_usb_serial_driver() - Helper macr.........【阅读全文】