Searched refs:fd (Results 251 - 275 of 1405) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/hfsplus/
H A Dextents.c88 struct hfs_find_data *fd)
95 hfsplus_ext_build_key(fd->search_key, inode->i_ino, hip->cached_start,
99 res = hfs_brec_find(fd, hfs_find_rec_by_key);
104 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1);
107 hfs_brec_insert(fd, hip->cached_extents,
113 hfs_bnode_write(fd->bnode, hip->cached_extents,
114 fd->entryoffset, fd->entrylength);
134 struct hfs_find_data fd; local
87 __hfsplus_ext_write_extent(struct inode *inode, struct hfs_find_data *fd) argument
156 __hfsplus_ext_read_extent(struct hfs_find_data *fd, struct hfsplus_extent *extent, u32 cnid, u32 block, u8 type) argument
177 __hfsplus_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) argument
209 struct hfs_find_data fd; local
399 struct hfs_find_data fd; local
547 struct hfs_find_data fd; local
[all...]
H A Dcatalog.c195 struct hfs_find_data *fd)
201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid);
202 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry));
217 hfsplus_cat_build_key_uni(fd->search_key,
220 return hfs_brec_find(fd, hfs_find_rec_by_key);
257 struct hfs_find_data fd; local
264 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd);
272 err = hfs_bmap_reserve(fd.tree, 2 * fd.tree->depth);
276 hfsplus_cat_build_key_with_cnid(sb, fd
194 hfsplus_find_cat(struct super_block *sb, u32 cnid, struct hfs_find_data *fd) argument
333 struct hfs_find_data fd; local
[all...]
/linux-master/arch/s390/kernel/
H A Dcompat_linux.c75 COMPAT_SYSCALL_DEFINE3(s390_ftruncate64, unsigned int, fd, u32, high, u32, low)
77 return ksys_ftruncate(fd, (unsigned long)high << 32 | low);
80 COMPAT_SYSCALL_DEFINE5(s390_pread64, unsigned int, fd, char __user *, ubuf,
85 return ksys_pread64(fd, ubuf, count, (unsigned long)high << 32 | low);
88 COMPAT_SYSCALL_DEFINE5(s390_pwrite64, unsigned int, fd, const char __user *, ubuf,
93 return ksys_pwrite64(fd, ubuf, count, (unsigned long)high << 32 | low);
96 COMPAT_SYSCALL_DEFINE4(s390_readahead, int, fd, u32, high, u32, low, s32, count)
98 return ksys_readahead(fd, (unsigned long)high << 32 | low, count);
168 COMPAT_SYSCALL_DEFINE2(s390_fstat64, unsigned int, fd, struct stat64_emu31 __user *, statbuf)
171 int ret = vfs_fstat(fd,
200 compat_ulong_t fd; member in struct:mmap_arg_struct_emu31
258 int fd; member in struct:fadvise64_64_args
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtcp_mmap.c156 static uint32_t tcp_info_get_rcv_mss(int fd) argument
161 if (getsockopt(fd, IPPROTO_TCP, TCP_INFO, &info, &sz)) {
184 int lu, fd; local
186 fd = (int)(unsigned long)arg;
190 fcntl(fd, F_SETFL, O_NDELAY);
197 raddr = mmap(NULL, chunk_size + map_align, PROT_READ, flags, fd, 0);
214 struct pollfd pfd = { .fd = fd, .events = POLLIN, };
226 res = getsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE,
246 lu = read(fd, buffe
323 apply_rcvsnd_buf(int fd) argument
385 int fd, res; local
452 int fd, c, on = 1; local
[all...]
H A Dreuseport_addr_any.c108 int fd, sz; local
147 fd = socket(family, proto, 0);
148 if (fd < 0)
152 setsockopt(fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE,
156 if (bind(fd, saddr, sz))
159 if (connect(fd, daddr, sz))
162 if (send(fd, "a", 1, 0) < 0)
165 return fd;
171 int i, fd; local
179 fd
194 test(int *rcv_fds, int count, int family, int proto, int fd) argument
[all...]
H A Dtcp_inq.c65 int fd; local
71 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen);
72 if (fd == -1) {
77 r = send(fd, buf, BUF_SIZE, 0);
88 close(fd);
105 int server_fd, fd; local
140 fd = socket(family, SOCK_STREAM, 0);
141 if (fd < 0)
144 if (connect(fd, (const struct sockaddr *)&addr, addr_len) == -1)
146 if (setsockopt(fd, SOL_TC
[all...]
H A Dreuseport_bpf_cpu.c77 static void attach_bpf(int fd) argument
90 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &p, sizeof(p)))
100 int fd; local
134 fd = socket(family, proto, 0);
135 if (fd < 0)
138 if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)))
141 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr)))
144 if (send(fd, "a", 1, 0) < 0)
147 close(fd);
154 int i, fd; local
[all...]
H A Dreuseport_bpf_numa.c73 static void attach_bpf(int fd) argument
100 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd,
112 int fd; local
144 fd = socket(family, proto, 0);
145 if (fd < 0)
148 if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)))
151 if (connect(fd, (struct sockaddr *)&daddr, sizeof(daddr)))
154 if (send(fd, "a", 1, 0) < 0)
157 close(fd);
164 int i, fd; local
[all...]
/linux-master/arch/um/kernel/
H A Dirq.c28 * This is why we keep a small irq_reg array for each fd -
49 int fd; member in struct:irq_entry
108 reg->timetravel_handler(reg->irq, entry->fd, reg->id, &reg->event);
169 * IO for a specific fd by executing os_del_epoll_fd(fd) before
201 static struct irq_entry *get_irq_entry_by_fd(int fd) argument
208 if (walk->fd == fd)
221 os_del_epoll_fd(to_free->fd);
236 os_add_epoll_fd(events, entry->fd, entr
250 activate_fd(int irq, int fd, enum um_irq_type type, void *dev_id, void (*timetravel_handler)(int, int, void *, struct time_travel_event *)) argument
311 free_irq_by_fd(int fd) argument
352 deactivate_fd(int fd, int irqnum) argument
431 _um_request_irq(int irq, int fd, enum um_irq_type type, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id, void (*timetravel_handler)(int, int, void *, struct time_travel_event *)) argument
469 um_request_irq(int irq, int fd, enum um_irq_type type, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id) argument
479 um_request_irq_tt(int irq, int fd, enum um_irq_type type, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id, void (*timetravel_handler)(int, int, void *, struct time_travel_event *)) argument
[all...]
/linux-master/arch/um/os-Linux/
H A Dprocess.c31 int fd, err; local
34 fd = open(proc_stat, O_RDONLY, 0);
35 if (fd < 0) {
40 CATCH_EINTR(err = read(fd, buf, sizeof(buf)));
46 os_close_file(fd);
54 close(fd);
63 int parent = FAILURE_PID, n, fd; local
69 fd = open(stat, O_RDONLY, 0);
70 if (fd < 0) {
76 CATCH_EINTR(n = read(fd, dat
138 os_map_memory(void *virt, int fd, unsigned long long off, unsigned long len, int r, int w, int x) argument
192 int fd, ok = 0; local
[all...]
/linux-master/fs/
H A Dsync.c149 SYSCALL_DEFINE1(syncfs, int, fd)
151 struct fd f = fdget(fd);
206 static int do_fsync(unsigned int fd, int datasync) argument
208 struct fd f = fdget(fd);
218 SYSCALL_DEFINE1(fsync, unsigned int, fd)
220 return do_fsync(fd, 0);
223 SYSCALL_DEFINE1(fdatasync, unsigned int, fd)
225 return do_fsync(fd,
355 ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, unsigned int flags) argument
[all...]
/linux-master/arch/um/drivers/
H A Dvector_user.c46 #define TRANS_FD "fd"
49 #define VNET_HDR_FAIL "could not enable vnet headers on fd %d"
134 int fd = -1; local
137 fd = open(PATH_NET_TUN, O_RDWR);
138 if (fd < 0) {
146 err = ioctl(fd, TUNSETIFF, (void *) &ifr);
153 ioctl(fd, TUNSETOFFLOAD, offload);
154 return fd;
156 if (fd >= 0)
157 os_close_file(fd);
164 int fd = -1; local
200 int fd = -1, i; local
309 int fd = -1; local
387 long fd; local
407 int fd = -1; local
479 uml_raw_enable_qdisc_bypass(int fd) argument
491 uml_raw_enable_vnet_headers(int fd) argument
503 uml_tap_enable_vnet_headers(int fd) argument
523 int fd = -1, gairet; local
680 uml_vector_sendmsg(int fd, void *hdr, int flags) argument
693 uml_vector_recvmsg(int fd, void *hdr, int flags) argument
707 uml_vector_writev(int fd, void *hdr, int iovcount) argument
720 uml_vector_sendmmsg( int fd, void *msgvec, unsigned int vlen, unsigned int flags) argument
737 uml_vector_recvmmsg( int fd, void *msgvec, unsigned int vlen, unsigned int flags) argument
754 uml_vector_attach_bpf(int fd, void *bpf) argument
765 uml_vector_detach_bpf(int fd, void *bpf) argument
[all...]
H A Dcow.h7 extern int init_cow_file(int fd, char *cow_file, char *backing_file,
18 extern int write_cow_header(char *cow_file, int fd, char *backing_file,
/linux-master/arch/sparc/kernel/
H A Dsystbls.h19 unsigned long fd, unsigned long off);
25 unsigned long fd, unsigned long pgoff);
55 asmlinkage long compat_sys_ftruncate64(unsigned int fd,
63 asmlinkage long compat_sys_fstat64(unsigned int fd,
68 asmlinkage long compat_sys_pread64(unsigned int fd,
73 asmlinkage long compat_sys_pwrite64(unsigned int fd,
78 asmlinkage long compat_sys_readahead(int fd,
82 long compat_sys_fadvise64(int fd,
86 long compat_sys_fadvise64_64(int fd,
90 long compat_sys_sync_file_range(unsigned int fd,
[all...]
/linux-master/arch/sh/include/asm/
H A Dsyscalls_32.h14 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
16 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
18 asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_task_file.c19 __u32 fd = ctx->fd; local
26 BPF_SEQ_PRINTF(seq, " tgid gid fd file\n");
37 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd,
/linux-master/tools/perf/util/
H A Ddebuginfo.c44 int fd; local
46 fd = open(path, O_RDONLY);
47 if (fd < 0)
48 return fd;
55 dbg->mod = dwfl_report_offline(dbg->dwfl, "", "", fd);
72 close(fd);
185 int fd; local
190 fd = debuginfod_find_source(c, (const unsigned char *)sbuild_id,
192 pr_debug("Search %s from debuginfod -> %d\n", p, fd);
193 if (fd >
[all...]
/linux-master/arch/parisc/kernel/
H A Dsys_parisc.c185 unsigned long prot, unsigned long flags, unsigned long fd,
190 return ksys_mmap_pgoff(addr, len, prot, flags, fd,
195 unsigned long prot, unsigned long flags, unsigned long fd,
199 return ksys_mmap_pgoff(addr, len, prot, flags, fd,
215 asmlinkage long parisc_ftruncate64(unsigned int fd, argument
218 return ksys_ftruncate(fd, (long)high << 32 | low);
227 asmlinkage long sys_ftruncate64(unsigned int fd, unsigned long length) argument
229 return ksys_ftruncate(fd, length);
231 asmlinkage long sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg) argument
233 return sys_fcntl(fd, cm
184 sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff) argument
194 sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset) argument
243 parisc_ftruncate64(unsigned int fd, unsigned int high, unsigned int low) argument
250 parisc_pread64(unsigned int fd, char __user *buf, size_t count, unsigned int high, unsigned int low) argument
256 parisc_pwrite64(unsigned int fd, const char __user *buf, size_t count, unsigned int high, unsigned int low) argument
262 parisc_readahead(int fd, unsigned int high, unsigned int low, size_t count) argument
268 parisc_fadvise64_64(int fd, unsigned int high_off, unsigned int low_off, unsigned int high_len, unsigned int low_len, int advice) argument
276 parisc_sync_file_range(int fd, u32 hi_off, u32 lo_off, u32 hi_nbytes, u32 lo_nbytes, unsigned int flags) argument
284 parisc_fallocate(int fd, int mode, u32 offhi, u32 offlo, u32 lenhi, u32 lenlo) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbind_perm.c25 int fd = -1; local
27 fd = socket(family, SOCK_STREAM, 0);
28 if (!ASSERT_GE(fd, 0, "socket"))
42 bind(fd, (struct sockaddr *)&addr, sizeof(addr));
46 if (fd >= 0)
47 close(fd);
/linux-master/tools/testing/selftests/user_events/
H A Dabi_test.c87 int fd = open(enable_file, O_RDWR); local
89 if (fd < 0)
92 close(fd);
99 int fd = open(enable_file, O_RDWR); local
102 if (fd < 0)
106 ret = write(fd, "1", 1);
108 ret = write(fd, "0", 1);
110 close(fd);
122 int fd = open(data_file, O_RDWR); local
125 if (fd <
140 int fd = open(data_file, O_RDWR); local
171 int fd = open(data_file, O_RDWR); local
199 int fd = open(data_file, O_RDWR); local
[all...]
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c31 #define close_prot_errno_disarm(fd) \
32 if (fd >= 0) { \
34 close(fd); \
36 fd = -EBADF; \
58 int fd, ret, saved_errno, result = 1; local
91 fd = open(device_path, O_RDONLY | O_CLOEXEC);
92 EXPECT_GE(fd, 0) {
98 ret = ioctl(fd, BINDER_CTL_ADD, &device);
100 close(fd);
114 fd
224 read_nointr(int fd, void *buf, size_t count) argument
235 write_nointr(int fd, const void *buf, size_t count) argument
249 int fd; local
361 int fd = PTR_TO_INT(data); local
384 int fd, ret; local
[all...]
/linux-master/include/uapi/linux/
H A Ddma-buf.h136 /** @fd: Returned sync file descriptor */
137 __s32 fd; member in struct:dma_buf_export_sync_file
166 /** @fd: Sync file descriptor */
167 __s32 fd; member in struct:dma_buf_import_sync_file
/linux-master/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Dgroup_constraint_cache_test.c41 FAIL_IF(!event_open_with_group(&event, leader.fd));
49 FAIL_IF(event_open_with_group(&event, leader.fd));
H A Dgroup_constraint_l2l3_sel_test.c45 FAIL_IF(!event_open_with_group(&event, leader.fd));
53 FAIL_IF(event_open_with_group(&event, leader.fd));
H A Dgroup_constraint_mmcra_sample_test.c38 FAIL_IF(!event_open_with_group(&event, leader.fd));
43 FAIL_IF(event_open_with_group(&event, leader.fd));

Completed in 217 milliseconds

<<11121314151617181920>>