map_file
struct vdpa_map_file *map_file;
map_file = kmalloc_obj(*map_file, GFP_ATOMIC);
if (!map_file)
map_file->file = get_file(file);
map_file->offset = offset;
addr, perm, map_file);
fput(map_file->file);
kfree(map_file);
struct vdpa_map_file *map_file;
map_file = (struct vdpa_map_file *)map->opaque;
struct vdpa_map_file *map_file;
fput(map_file->file);
map_file = (struct vdpa_map_file *)map->opaque;
fput(map_file->file);
kfree(map_file);
kfree(map_file);
struct vdpa_map_file *map_file;
map_file = (struct vdpa_map_file *)map->opaque;
map_file->file,
map_file->offset);
const struct vdpa_map_file *map_file;
map_file = (struct vdpa_map_file *)map->opaque;
entry->offset = map_file->offset;
*f = get_file(map_file->file);
struct vdpa_map_file *map_file;
map_file = kzalloc_obj(*map_file);
if (!map_file) {
map_file->offset = offset;
map_file->file = get_file(vma->vm_file);
perm, map_file);
fput(map_file->file);
kfree(map_file);
struct vdpa_map_file *map_file;
map_file = (struct vdpa_map_file *)map->opaque;
fput(map_file->file);
kfree(map_file);
void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
struct file *map_file;
int generic_map_update_batch(struct bpf_map *map, struct file *map_file,
int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
void (*map_release)(struct bpf_map *map, struct file *map_file);
int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
struct file *map_file)
ee->map_file = map_file;
struct file *map_file, int fd)
ee = bpf_event_entry_gen(perf_file, map_file);
struct file *map_file)
if (ee && ee->map_file == map_file)
struct file *map_file /* not used */,
int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd);
struct file *map_file, int fd)
int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
ptr = map->ops->map_fd_get_ptr(map, map_file, *(int *)value);
struct file *map_file /* not used */,
void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
int generic_map_update_batch(struct bpf_map *map, struct file *map_file,
err = bpf_map_update_value(map, map_file, key, value,
static int bpf_map_update_value(struct bpf_map *map, struct file *map_file,
return bpf_fd_array_map_update_elem(map, map_file, key, value,
err = bpf_fd_array_map_update_elem(map, map_file, key, value,
err = bpf_fd_htab_map_update_elem(map, map_file, key, value,
addr = map_file(fname, size);
hdr = map_file(vmlinux_file, &vmlinux_size);