发布时间:2020-10-05 23:26:29
fs/namespace.c SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, char __user *, type, unsigned long, flags, void __user *, data){ int retval; unsigned long data_page; unsigned long type_page; unsigned long dev_page; char *dir_.........【阅读全文】
发布时间: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 .........【阅读全文】