Home
last modified time | relevance | path

Searched full:storage (Results 1 – 25 of 2397) sorted by relevance

12345678910>>...96

/kernel/linux/linux-5.10/kernel/bpf/
Dlocal_storage.c76 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup() local
78 storage = container_of(node, struct bpf_cgroup_storage, node); in cgroup_storage_lookup()
80 switch (bpf_cgroup_storage_key_cmp(map, key, &storage->key)) { in cgroup_storage_lookup()
90 return storage; in cgroup_storage_lookup()
101 struct bpf_cgroup_storage *storage) in cgroup_storage_insert() argument
112 switch (bpf_cgroup_storage_key_cmp(map, &storage->key, &this->key)) { in cgroup_storage_insert()
124 rb_link_node(&storage->node, parent, new); in cgroup_storage_insert()
125 rb_insert_color(&storage->node, root); in cgroup_storage_insert()
133 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup_elem() local
135 storage = cgroup_storage_lookup(map, key, false); in cgroup_storage_lookup_elem()
[all …]
Dbpf_local_storage.c259 struct bpf_local_storage *prev_storage, *storage; in bpf_local_storage_alloc() local
263 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
267 storage = kzalloc(sizeof(*storage), GFP_ATOMIC | __GFP_NOWARN); in bpf_local_storage_alloc()
268 if (!storage) { in bpf_local_storage_alloc()
273 INIT_HLIST_HEAD(&storage->list); in bpf_local_storage_alloc()
274 raw_spin_lock_init(&storage->lock); in bpf_local_storage_alloc()
275 storage->owner = owner; in bpf_local_storage_alloc()
277 bpf_selem_link_storage_nolock(storage, first_selem); in bpf_local_storage_alloc()
282 /* Publish storage to the owner. in bpf_local_storage_alloc()
287 * From now on, the owner->storage pointer (e.g. sk->sk_bpf_storage) in bpf_local_storage_alloc()
[all …]
/kernel/linux/linux-4.19/kernel/bpf/
Dlocal_storage.c58 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup() local
60 storage = container_of(node, struct bpf_cgroup_storage, node); in cgroup_storage_lookup()
62 switch (bpf_cgroup_storage_key_cmp(key, &storage->key)) { in cgroup_storage_lookup()
72 return storage; in cgroup_storage_lookup()
83 struct bpf_cgroup_storage *storage) in cgroup_storage_insert() argument
94 switch (bpf_cgroup_storage_key_cmp(&storage->key, &this->key)) { in cgroup_storage_insert()
106 rb_link_node(&storage->node, parent, new); in cgroup_storage_insert()
107 rb_insert_color(&storage->node, root); in cgroup_storage_insert()
116 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup_elem() local
118 storage = cgroup_storage_lookup(map, key, false); in cgroup_storage_lookup_elem()
[all …]
/kernel/linux/linux-5.10/Documentation/bpf/
Dmap_cgroup_storage.rst9 storage. It is only available with ``CONFIG_CGROUP_BPF``, and to programs that
11 storage is identified by the cgroup the program is attached to.
13 The map provide a local storage at the cgroup that the BPF program is attached
38 map will share the same storage. Otherwise, if the type is
42 To access the storage in a program, use ``bpf_get_local_storage``::
51 ``struct bpf_spin_lock`` to synchronize the storage. See
128 storage. The non-per-CPU will have the same memory region for each storage.
130 Prior to Linux 5.9, the lifetime of a storage is precisely per-attachment, and
133 multiple attach types, and each attach creates a fresh zeroed storage. The
134 storage is freed upon detach.
[all …]
/kernel/linux/linux-5.10/kernel/
Dstacktrace.c19 * @entries: Pointer to storage array
20 * @nr_entries: Number of entries in the storage array
40 * @entries: Pointer to storage array
41 * @nr_entries: Number of entries in the storage array
104 * stack_trace_save - Save a stack trace into a storage array
105 * @store: Pointer to storage array
106 * @size: Size of the storage array
127 * stack_trace_save_tsk - Save a task stack trace into a storage array
129 * @store: Pointer to storage array
130 * @size: Size of the storage array
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dlocal_storage.c60 struct dummy_storage *storage; in BPF_PROG() local
66 storage = bpf_inode_storage_get(&inode_storage_map, victim->d_inode, 0, in BPF_PROG()
68 if (!storage) in BPF_PROG()
71 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
86 struct dummy_storage *storage; in BPF_PROG() local
92 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG()
94 if (!storage) in BPF_PROG()
97 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
112 struct dummy_storage *storage; in BPF_PROG() local
117 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG()
[all …]
Dsockopt_inherit.c55 struct sockopt_inherit *storage; in _getsockopt() local
64 storage = get_storage(ctx); in _getsockopt()
65 if (!storage) in _getsockopt()
66 return 0; /* EPERM, couldn't get sk storage */ in _getsockopt()
70 optval[0] = storage->val; in _getsockopt()
80 struct sockopt_inherit *storage; in _setsockopt() local
89 storage = get_storage(ctx); in _setsockopt()
90 if (!storage) in _setsockopt()
91 return 0; /* EPERM, couldn't get sk storage */ in _setsockopt()
93 storage->val = optval[0]; in _setsockopt()
Dtcp_rtt.c26 struct tcp_rtt_storage *storage; in _sockops() local
35 storage = bpf_sk_storage_get(&socket_storage_map, sk, 0, in _sockops()
37 if (!storage) in _sockops()
52 storage->invoked++; in _sockops()
54 storage->dsack_dups = tcp_sk->dsack_dups; in _sockops()
55 storage->delivered = tcp_sk->delivered; in _sockops()
56 storage->delivered_ce = tcp_sk->delivered_ce; in _sockops()
57 storage->icsk_retransmits = tcp_sk->icsk_retransmits; in _sockops()
Dsockopt_sk.c33 struct sockopt_sk *storage; in _getsockopt() local
86 storage = bpf_sk_storage_get(&socket_storage_map, ctx->sk, 0, in _getsockopt()
88 if (!storage) in _getsockopt()
89 return 0; /* EPERM, couldn't get sk storage */ in _getsockopt()
97 optval[0] = storage->val; in _getsockopt()
108 struct sockopt_sk *storage; in _setsockopt() local
171 storage = bpf_sk_storage_get(&socket_storage_map, ctx->sk, 0, in _setsockopt()
173 if (!storage) in _setsockopt()
174 return 0; /* EPERM, couldn't get sk storage */ in _setsockopt()
176 storage->val = optval[0]; in _setsockopt()
/kernel/linux/linux-4.19/Documentation/usb/
Dmass-storage.txt3 Mass Storage Gadget (or MSG) acts as a USB Mass Storage device,
5 multiple logical units (LUNs). Backing storage for each LUN is
22 relation to mass storage function (or MSF) and different gadgets
23 using it, and how it differs from File Storage Gadget (or FSG)
29 The mass storage gadget accepts the following mass storage specific
35 backing storage for each logical unit. There may be at most
39 *BEWARE* that if a file is used as a backing storage, it may not
69 true. This has been changed to better match File Storage Gadget
104 MS Windows mounts removable storage in “Removal optimised mode” by
180 * Other gadgets using mass storage function
[all …]
/kernel/linux/linux-5.10/Documentation/usb/
Dmass-storage.rst2 Mass Storage Gadget (MSG)
8 Mass Storage Gadget (or MSG) acts as a USB Mass Storage device,
10 multiple logical units (LUNs). Backing storage for each LUN is
27 relation to mass storage function (or MSF) and different gadgets
28 using it, and how it differs from File Storage Gadget (or FSG)
35 The mass storage gadget accepts the following mass storage specific
41 backing storage for each logical unit. There may be at most
45 *BEWARE* that if a file is used as a backing storage, it may not
75 true. This has been changed to better match File Storage Gadget
110 MS Windows mounts removable storage in “Removal optimised mode” by
[all …]
/kernel/linux/linux-4.19/drivers/usb/storage/
DKconfig2 # USB Storage driver configuration
9 tristate "USB Mass Storage support"
12 Say Y here if you want to connect USB mass storage devices to your
21 (BLK_DEV_SD) for most USB storage devices.
24 module will be called usb-storage.
27 bool "USB Mass Storage verbose debug"
30 Say Y here in order to have the USB Mass Storage code generate
75 - ISD SmartCable for Storage
84 tristate "USBAT/USBAT02-based storage support"
87 Say Y here to include additional code to support storage devices
[all …]
Dunusual_devs.h3 * Driver for USB Mass Storage compliant devices
58 "SND1 Storage",
283 "USB Mass Storage Device",
301 * Generic Mass Storage (PROTOTYPE--Remember to change idVendor)
397 "875DC Storage",
406 "785EPX Storage",
591 "File-backed Storage Gadget",
714 "PEG Mass Storage",
721 "PEG Mass Storage",
728 "PEG Mass Storage",
[all …]
DMakefile3 # Makefile for the USB Mass Storage device drivers.
12 obj-$(CONFIG_USB_STORAGE) += usb-storage.o
14 usb-storage-y := scsiglue.o protocol.o transport.o usb.o
15 usb-storage-y += initializers.o sierra_ms.o option_ms.o
16 usb-storage-y += usual-tables.o
17 usb-storage-$(CONFIG_USB_STORAGE_DEBUG) += debug.o
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_cgroup_storage.c14 #define TEST_CGROUP "/test-bpf-cgroup-storage-buf/"
86 printf("Failed to get the first key in cgroup storage\n"); in main()
91 printf("Failed to lookup cgroup storage 0\n"); in main()
99 printf("Failed to update the data in the cgroup storage\n"); in main()
108 /* Check the counter in the cgroup local storage */ in main()
110 printf("Failed to lookup cgroup storage\n"); in main()
115 printf("Unexpected data in the cgroup storage: %llu\n", value); in main()
119 /* Bump the counter in the cgroup local storage */ in main()
122 printf("Failed to update the data in the cgroup storage\n"); in main()
131 /* Check the final value of the counter in the cgroup local storage */ in main()
[all …]
/kernel/linux/linux-5.10/drivers/usb/storage/
DKconfig3 # USB Storage driver configuration
10 tristate "USB Mass Storage support"
13 Say Y here if you want to connect USB mass storage devices to your
22 (BLK_DEV_SD) for most USB storage devices.
25 module will be called usb-storage.
30 bool "USB Mass Storage verbose debug"
32 Say Y here in order to have the USB Mass Storage code generate
73 - ISD SmartCable for Storage
82 tristate "USBAT/USBAT02-based storage support"
84 Say Y here to include additional code to support storage devices
[all …]
Dunusual_devs.h3 * Driver for USB Mass Storage compliant devices
58 "SND1 Storage",
283 "USB Mass Storage Device",
301 * Generic Mass Storage (PROTOTYPE--Remember to change idVendor)
397 "875DC Storage",
406 "785EPX Storage",
608 "File-backed Storage Gadget",
731 "PEG Mass Storage",
738 "PEG Mass Storage",
745 "PEG Mass Storage",
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/bpf/
Dtest_cgroup_storage.c13 #define TEST_CGROUP "/test-bpf-cgroup-storage-buf/"
75 printf("Failed to get the first key in cgroup storage\n"); in main()
80 printf("Failed to lookup cgroup storage\n"); in main()
89 /* Check the counter in the cgroup local storage */ in main()
91 printf("Failed to lookup cgroup storage\n"); in main()
96 printf("Unexpected data in the cgroup storage: %llu\n", value); in main()
100 /* Bump the counter in the cgroup local storage */ in main()
103 printf("Failed to update the data in the cgroup storage\n"); in main()
112 /* Check the final value of the counter in the cgroup local storage */ in main()
114 printf("Failed to lookup the cgroup storage\n"); in main()
[all …]
/kernel/linux/linux-4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_util.c54 queue->storage = kcalloc(size, sizeof(VCHIQ_HEADER_T *), GFP_KERNEL); in vchiu_queue_init()
55 if (!queue->storage) { in vchiu_queue_init()
64 kfree(queue->storage); in vchiu_queue_delete()
88 * Write to queue->storage must be visible after read from in vchiu_queue_push()
93 queue->storage[queue->write & (queue->size - 1)] = header; in vchiu_queue_push()
96 * Write to queue->storage must be visible before write to in vchiu_queue_push()
116 * Read from queue->storage must be visible after read from in vchiu_queue_peek()
121 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek()
134 * Read from queue->storage must be visible after read from in vchiu_queue_pop()
139 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/
Dcgroup_storage.c2 "valid cgroup storage access",
17 "invalid cgroup storage access 1",
33 "invalid cgroup storage access 2",
46 "invalid cgroup storage access 3",
62 "invalid cgroup storage access 4",
79 "invalid cgroup storage access 5",
95 "invalid cgroup storage access 6",
112 "valid per-cpu cgroup storage access",
127 "invalid per-cpu cgroup storage access 1",
143 "invalid per-cpu cgroup storage access 2",
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dmmu_64.h93 /* ADI tags are stored when a page is swapped out and the storage for
94 * tags is allocated dynamically. There is a tag storage descriptor
95 * associated with each set of tag storage pages. Tag storage descriptors
97 * each tag storage descriptor, we can store up to
98 * PAGE_SIZE/sizeof(tag storage descriptor) descriptors on that page.
101 unsigned long start; /* Start address for this tag storage */
102 unsigned long end; /* Last address for tag storage */
/kernel/linux/linux-4.19/arch/sparc/include/asm/
Dmmu_64.h93 /* ADI tags are stored when a page is swapped out and the storage for
94 * tags is allocated dynamically. There is a tag storage descriptor
95 * associated with each set of tag storage pages. Tag storage descriptors
97 * each tag storage descriptor, we can store up to
98 * PAGE_SIZE/sizeof(tag storage descriptor) descriptors on that page.
101 unsigned long start; /* Start address for this tag storage */
102 unsigned long end; /* Last address for tag storage */
/kernel/linux/linux-4.19/arch/powerpc/platforms/ps3/
DKconfig107 tristate "PS3 Disk Storage Driver"
111 Include support for the PS3 Disk Storage.
117 tristate "PS3 BD/DVD/CD-ROM Storage Driver"
121 Include support for the PS3 ROM Storage.
128 tristate "PS3 FLASH ROM Storage Driver"
132 Include support for the PS3 FLASH ROM Storage.
143 tristate "PS3 Video RAM Storage Driver"
147 storage or system swap.
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
DKconfig105 tristate "PS3 Disk Storage Driver"
109 Include support for the PS3 Disk Storage.
115 tristate "PS3 BD/DVD/CD-ROM Storage Driver"
119 Include support for the PS3 ROM Storage.
126 tristate "PS3 FLASH ROM Storage Driver"
130 Include support for the PS3 FLASH ROM Storage.
141 tristate "PS3 Video RAM Storage Driver"
145 storage or system swap.
/kernel/linux/linux-5.10/drivers/staging/blackbox/
DKconfig7 select STORAGE if BLACKBOX_STORAGE_MATERIAL
27 tristate "blackbox fault log storage by memory directly"
43 tristate "blackbox fault log storage by pstore blk"
55 tristate "blackbox fault log storage by pstore ram"
65 tristate "blackbox fault log storage by RAW partition"
79 prompt "Default storage material for fault log when a panic occurs."

12345678910>>...96