Searched refs:lctx (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_storage_bench.c | 51 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 D | oplock.c | 92 static int alloc_lease(struct oplock_info *opinfo, struct lease_ctx_info *lctx) in alloc_lease() argument 100 memcpy(lease->lease_key, lctx->lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease() 101 lease->state = lctx->req_state; in alloc_lease() 103 lease->flags = lctx->flags; in alloc_lease() 104 lease->duration = lctx->duration; in alloc_lease() 105 lease->is_dir = lctx->is_dir; in alloc_lease() 106 memcpy(lease->parent_lease_key, lctx->parent_lease_key, SMB2_LEASE_KEY_SIZE); in alloc_lease() 107 lease->version = lctx->version; in alloc_lease() 108 lease->epoch = le16_to_cpu(lctx->epoch) + 1; in alloc_lease() 406 struct lease_ctx_info *lctx) in grant_write_oplock() argument [all …]
|
| H A D | oplock.h | 91 struct lease_ctx_info *lctx, int share_ret); 119 struct lease_ctx_info *lctx); 122 struct lease_ctx_info *lctx); 127 struct lease_ctx_info *lctx,
|
| /linux/security/ |
| H A D | security.c | 3629 struct lsm_ctx lctx = { .id = LSM_ID_UNDEF, }; in security_getselfattr() local 3652 if (copy_from_user(&lctx, uctx, sizeof(lctx))) in security_getselfattr() 3657 if (lctx.id == LSM_ID_UNDEF) in security_getselfattr() 3667 if (single && lctx.id != scall->hl->lsmid->id) in security_getselfattr() 3720 struct lsm_ctx *lctx; in security_setselfattr() local 3726 if (size < sizeof(*lctx)) in security_setselfattr() 3731 lctx = memdup_user(uctx, size); in security_setselfattr() 3732 if (IS_ERR(lctx)) in security_setselfattr() 3733 return PTR_ERR(lctx); in security_setselfattr() 3735 if (size < lctx->len || in security_setselfattr() [all …]
|