Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch267 +static uint64_t get_size(int dev_fd)
274 + if (!ioctl(dev_fd, BLKGETSIZE64, &bytes))
277 + if (!ioctl(dev_fd, BLKGETSIZE, &sects))
279 + else if (!fstat(dev_fd, &st) && st.st_size)
293 +static int sysfs_get_offset(int dev_fd, unsigned long *start)
300 + if (fstat(dev_fd, &st))
336 +static int get_geometry(int dev_fd, uint64_t totalbytes, struct hd_geometry *geo)
346 + if (!ioctl(dev_fd, HDIO_GETGEO, geo)) {
348 + } else if (!ioctl(dev_fd, FDGETPRM, &fd_str)) {
383 + if (!ioctl(dev_fd, LOOP_GET_STATUS64, &li64))
[all …]
H A D0003-linux-syslinux-implement-install_to_ext2.patch44 + int i_flags, int dev_fd, const char *subdir)
49 static int install_to_ext2(const char *device, int dev_fd, const char *subdir)
73 + boot_image_len, EXT2_IMMUTABLE_FL, dev_fd, subdir);
83 + syslinux_ldlinuxc32_len, 0, dev_fd, subdir);
104 + retval = install_bootblock(dev_fd, device);
105 + close(dev_fd);
H A D0001-linux-syslinux-support-ext2-3-4-device.patch42 +static int install_to_ext2(const char *device, int dev_fd, const char *subdir)
58 + if (install_to_ext2(opt.device, dev_fd, subdir)) {
71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
72 fsync(dev_fd);
H A D0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch34 +void syslinux_patch_bootsect(int dev_fd)
48 +void syslinux_patch_bootsect(int dev_fd);
98 int i_flags, int dev_fd, const char *subdir)
183 + syslinux_patch_bootsect(dev_fd);
/OK3568_Linux_fs/kernel/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c854 int dev_fd, ret; in vcpu_mmap_sz() local
856 dev_fd = open(KVM_DEV_PATH, O_RDONLY); in vcpu_mmap_sz()
857 if (dev_fd < 0) in vcpu_mmap_sz()
860 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz()
865 close(dev_fd); in vcpu_mmap_sz()
/OK3568_Linux_fs/kernel/Documentation/target/
H A Dtcmu-design.rst308 int fd, dev_fd;
331 dev_fd = open("/dev/uio0", O_RDWR);
332 map = mmap(NULL, map_len, PROT_READ|PROT_WRITE, MAP_SHARED, dev_fd, 0);
340 int ret = read(dev_fd, buf, 4); /* will block */
342 handle_device_events(dev_fd, map);
/OK3568_Linux_fs/kernel/Documentation/x86/
H A Dresctrl_ui.rst929 int dev_fd;
942 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR);
943 if (dev_fd < 0) {
949 dev_fd, 0);
952 close(dev_fd);
961 close(dev_fd);
965 close(dev_fd);
/OK3568_Linux_fs/kernel/Documentation/virt/kvm/
H A Dapi.rst170 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));