Lines Matching refs:create_attr
80 int bpf_create_map_xattr(const struct bpf_create_map_attr *create_attr) in bpf_create_map_xattr() argument
87 attr.map_type = create_attr->map_type; in bpf_create_map_xattr()
88 attr.key_size = create_attr->key_size; in bpf_create_map_xattr()
89 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
90 attr.max_entries = create_attr->max_entries; in bpf_create_map_xattr()
91 attr.map_flags = create_attr->map_flags; in bpf_create_map_xattr()
92 if (create_attr->name) in bpf_create_map_xattr()
93 memcpy(attr.map_name, create_attr->name, in bpf_create_map_xattr()
94 min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_create_map_xattr()
95 attr.numa_node = create_attr->numa_node; in bpf_create_map_xattr()
96 attr.btf_fd = create_attr->btf_fd; in bpf_create_map_xattr()
97 attr.btf_key_type_id = create_attr->btf_key_type_id; in bpf_create_map_xattr()
98 attr.btf_value_type_id = create_attr->btf_value_type_id; in bpf_create_map_xattr()
99 attr.map_ifindex = create_attr->map_ifindex; in bpf_create_map_xattr()
102 create_attr->btf_vmlinux_value_type_id; in bpf_create_map_xattr()
104 attr.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr()