Searched refs:efd (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/tools/cgroup/
H A Dcgroup_event_listener.c23 int efd = -1; main() local
46 efd = eventfd(0, 0); main()
47 if (efd == -1) main()
50 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); main()
61 ret = read(efd, &result, sizeof(result)); main()
/linux-4.4.14/samples/bpf/
H A Dbpf_load.c54 int fd, efd, err, id; load_and_attach() local
121 efd = open(buf, O_RDONLY, 0); load_and_attach()
122 if (efd < 0) { load_and_attach()
127 err = read(efd, buf, sizeof(buf)); load_and_attach()
133 close(efd); load_and_attach()
139 efd = perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); load_and_attach()
140 if (efd < 0) { load_and_attach()
141 printf("event %d fd %d err %s\n", id, efd, strerror(errno)); load_and_attach()
144 event_fd[prog_cnt - 1] = efd; load_and_attach()
145 ioctl(efd, PERF_EVENT_IOC_ENABLE, 0); load_and_attach()
146 ioctl(efd, PERF_EVENT_IOC_SET_BPF, fd); load_and_attach()
/linux-4.4.14/fs/xfs/
H A Dxfs_extfree_item.c310 * This returns the number of iovecs needed to log the given efd item.
311 * We only need 1 iovec for an efd item. It just logs the efd_log_format
334 * given efd log item. We use only 1 iovec, and we point that
335 * at the efd_log_format structure embedded in the efd item.
337 * slots in the efd item have been filled.
358 * Pinning has no meaning for an efd item, so just return.
367 * Since pinning has no meaning for an efd item, unpinning does
378 * There isn't much you can do to push on an efd item. It is simply stuck
406 * When the efd item is committed to disk, all we need to do is delete our
445 * This is the ops vector shared by all efd log items.
459 * Allocate and initialize an efd item with the given number of extents.
H A Dxfs_bmap_util.c103 struct xfs_efd_log_item *efd; /* extent free data */ xfs_bmap_finish() local
149 efd = xfs_trans_get_efd(*tp, efi, flist->xbf_count); xfs_bmap_finish()
153 error = xfs_trans_free_extent(*tp, efd, free->xbfi_startblock, xfs_bmap_finish()
/linux-4.4.14/drivers/scsi/
H A Dses.c445 struct efd { struct
453 struct efd *efd = data; ses_enclosure_find_by_addr() local
462 if (scomp->addr != efd->addr) ses_enclosure_find_by_addr()
465 if (enclosure_add_device(edev, i, efd->dev) == 0) ses_enclosure_find_by_addr()
466 kobject_uevent(&efd->dev->kobj, KOBJ_CHANGE); ses_enclosure_find_by_addr()
583 struct efd efd = { ses_match_to_enclosure() local
603 efd.addr = get_unaligned_be64(&desc[4]); ses_match_to_enclosure()
607 if (efd.addr) { ses_match_to_enclosure()
608 efd.dev = &sdev->sdev_gendev; ses_match_to_enclosure()
610 enclosure_for_each_device(ses_enclosure_find_by_addr, &efd); ses_match_to_enclosure()
/linux-4.4.14/mm/
H A Dvmpressure.c134 struct eventfd_ctx *efd; member in struct:vmpressure_event
152 eventfd_signal(ev->efd, 1); vmpressure_event()
315 ev->efd = eventfd; vmpressure_register_event()
344 if (ev->efd != eventfd) vmpressure_unregister_event()
H A Dmemcontrol.c3893 unsigned int efd, cfd; memcg_write_event_control() local
3902 efd = simple_strtoul(buf, &endp, 10); memcg_write_event_control()
3922 efile = fdget(efd); memcg_write_event_control()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_log_format.h570 * This is the structure used to lay out an efd log item in the
575 __uint16_t efd_type; /* efd log item type */
583 __uint16_t efd_type; /* efd log item type */
591 __uint16_t efd_type; /* efd log item type */

Completed in 226 milliseconds