Home
last modified time | relevance | path

Searched refs:lctx (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_storage_bench.c51 static int do_lookup(unsigned int elem, struct loop_ctx *lctx) in do_lookup() argument
69 bpf_task_storage_get(inner_map, lctx->task, &idx, in do_lookup()
73 lctx->loop_hits++; in do_lookup()
75 lctx->loop_important_hits++; in do_lookup()
81 struct loop_ctx *lctx = (struct loop_ctx *)ctx; in loop() local
84 do_lookup(map_idx, lctx); in loop()
86 do_lookup(0, lctx); in loop()
93 struct loop_ctx lctx; in get_local() local
95 lctx.task = bpf_get_current_task_btf(); in get_local()
96 lctx.loop_hits = 0; in get_local()
[all …]
/linux/fs/smb/server/
H A Doplock.c172 static struct lease *alloc_lease(struct lease_ctx_info *lctx, in alloc_lease() argument
181 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
182 lease->state = lctx->req_state; in alloc_lease()
184 lease->flags = lctx->flags; in alloc_lease()
185 lease->duration = lctx->duration; in alloc_lease()
186 lease->is_dir = lctx->is_dir; in alloc_lease()
187 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
188 lease->version = lctx->version; in alloc_lease()
189 lease->epoch = lctx->version == 2 ? le16_to_cpu(lctx->epoch) + 1 : 0; in alloc_lease()
582 struct lease_ctx_info *lctx) in grant_write_oplock() argument
[all …]
H A Doplock.h100 struct lease_ctx_info *lctx, int share_ret, bool replay);
136 struct lease_ctx_info *lctx);
139 struct lease_ctx_info *lctx);
144 struct lease_ctx_info *lctx,
/linux/security/
H A Dsecurity.c3731 struct lsm_ctx lctx = { .id = LSM_ID_UNDEF, }; in security_getselfattr()
3754 if (copy_from_user(&lctx, uctx, sizeof(lctx))) in security_getselfattr()
3759 if (lctx.id == LSM_ID_UNDEF) in security_getselfattr()
3769 if (single && lctx.id != scall->hl->lsmid->id) in security_getselfattr()
3822 struct lsm_ctx *lctx; in security_setselfattr()
3828 if (size < sizeof(*lctx)) in security_setselfattr()
3833 lctx = memdup_user(uctx, size); in security_setselfattr()
3834 if (IS_ERR(lctx)) in security_setselfattr()
3835 return PTR_ERR(lctx); in security_setselfattr()
3732 struct lsm_ctx lctx = { .id = LSM_ID_UNDEF, }; security_getselfattr() local
3823 struct lsm_ctx *lctx; security_setselfattr() local
[all...]