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.c93 static int alloc_lease(struct oplock_info *opinfo, struct lease_ctx_info *lctx) in alloc_lease() argument
101 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
102 lease->state = lctx->req_state; in alloc_lease()
104 lease->flags = lctx->flags; in alloc_lease()
105 lease->duration = lctx->duration; in alloc_lease()
106 lease->is_dir = lctx->is_dir; in alloc_lease()
107 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease()
108 lease->version = lctx->version; in alloc_lease()
109 lease->epoch = le16_to_cpu(lctx->epoch) + 1; in alloc_lease()
419 struct lease_ctx_info *lctx) in grant_write_oplock() argument
[all …]
H A Doplock.h93 struct lease_ctx_info *lctx, int share_ret);
121 struct lease_ctx_info *lctx);
124 struct lease_ctx_info *lctx);
129 struct lease_ctx_info *lctx,
/linux/security/
H A Dsecurity.c4107 struct lsm_ctx lctx = { .id = LSM_ID_UNDEF, }; in security_getselfattr() local
4130 if (copy_from_user(&lctx, uctx, sizeof(lctx))) in security_getselfattr()
4135 if (lctx.id == LSM_ID_UNDEF) in security_getselfattr()
4145 if (single && lctx.id != scall->hl->lsmid->id) in security_getselfattr()
4198 struct lsm_ctx *lctx; in security_setselfattr() local
4204 if (size < sizeof(*lctx)) in security_setselfattr()
4209 lctx = memdup_user(uctx, size); in security_setselfattr()
4210 if (IS_ERR(lctx)) in security_setselfattr()
4211 return PTR_ERR(lctx); in security_setselfattr()
4213 if (size < lctx->len || in security_setselfattr()
[all …]