/linux/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 46 int online = aq->config && !aq->chkstop && zq->online ? 1 : 0; in online_show() local 48 return sysfs_emit(buf, "%d\n", online); in online_show() 58 int online; in online_store() local 60 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store() 63 if (online && (!aq->config || !aq->card->config || in online_store() 66 if (online && !zc->online) in online_store() 68 zq->online = online; in online_store() 70 ZCRYPT_DBF_INFO("%s queue=%02x.%04x online=%d\n", in online_store() 72 AP_QID_QUEUE(zq->queue->qid), online); in online_store() 74 ap_send_online_uevent(&aq->ap_dev, online); in online_store() [all …]
|
H A D | zcrypt_card.c | 56 int online = ac->config && !ac->chkstop && zc->online ? 1 : 0; in online_show() local 58 return sysfs_emit(buf, "%d\n", online); in online_show() 68 int online, id, i = 0, maxzqs = 0; in online_store() local 71 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store() 74 if (online && (!ac->config || ac->chkstop)) in online_store() 77 zc->online = online; in online_store() 80 ZCRYPT_DBF_INFO("%s card=%02x online=%d\n", __func__, id, online); in online_store() 82 ap_send_online_uevent(&ac->ap_dev, online); in online_store() 96 if (zcrypt_queue_force_online(zq, online)) in online_store() 105 ap_send_online_uevent(&zq->queue->ap_dev, online); in online_store() [all …]
|
/linux/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 32 echo "CPU online/offline summary:" 33 online_cpus=`cat $SYSFS/devices/system/cpu/online` 45 echo -e "\t Cpus in online state: $online_cpus" 64 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 87 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 92 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online 97 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online 121 echo $FUNCNAME $cpu: unexpected online >&2 196 # Safe test (default) - offline and online one cpu [all …]
|
/linux/Documentation/core-api/ |
H A D | cpu_hotplug.rst | 36 other CPUs later online. 41 those CPUs can not be brought online later. 65 Bitmap of all CPUs currently online. Its set in ``__cpu_up()`` 73 of them may be online. When physical hotplug is processed by the relevant 106 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 110 The files *offline*, *online*, *possible*, *present* represent the CPU masks. 111 Each CPU folder contains an *online* file which controls the logical on (1) and 114 $ echo 0 > /sys/devices/system/cpu/cpu4/online 119 bring CPU4 back online:: 121 $ echo 1 > /sys/devices/system/cpu/cpu4/online [all …]
|
/linux/tools/testing/selftests/memory-hotplug/ |
H A D | mem-on-off-test.sh | 58 hotpluggable_memory online 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 103 echo $FUNCNAME $memory: unexpected online >&2 184 # Online all hot-pluggable memory 187 echo -e "\t online all hot-pluggable memory in offline state:" 190 echo "offline->online memory$memory" 204 echo -e "\t offline $ratio% hot-pluggable memory in online state" 208 echo "online->offline memory$memory" 223 # Online all hot-pluggable memory again [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_hotplug.tc | 19 # Find online cpu 21 if [ -f $i/online ] && [ "$(cat $i/online)" = "1" ]; then 28 echo "We cannot test cpu hotplug with a single cpu online" 35 : "Set $(basename $cpu) offline/online with function tracer enabled" 38 (echo 0 > $cpu/online) 40 (echo 1 > $cpu/online)
|
/linux/Documentation/arch/s390/ |
H A D | driver-model.rst | 49 online: 50 An interface to set the device online and offline. 52 notify function under 1.2), piping 0 to online will forcibly delete 77 via the 'online' interface. 93 int online; 161 activated via the 'online' attribute. The driver should finally 171 verified that the device is not already online. 175 de-activated via the 'online' attribute. The driver should shut 185 verified that the device is online. 194 * In online state, device detached (CIO_GONE) or last path gone [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | cpu_hotplug.rst | 107 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 111 文件 *offline* 、 *online* 、*possible* 、*present* 代表CPU掩码。每个CPU文件 112 夹包含一个 *online* 文件,控制逻辑上的开(1)和关(0)状态。要在逻辑上关闭CPU4:: 114 $ echo 0 > /sys/devices/system/cpu/cpu4/online 120 $ echo 1 > /sys/devices/system/cpu/cpu4/online 365 的常量之一, 具体取决于应该分配动态状态的状态阶段(PREPARE,ONLINE)。 379 online 对应ONLINE阶段中的状态 387 @name参数的示例:"perf/online", "perf/x86:prepare", "RCU/tree:dying", "sched/waitempty" 521 state = cpuhp_setup_state_nocalls(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, NULL); 529 …state = cpuhp_setup_state_multi(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, subsys_cpu_o… [all …]
|
/linux/Documentation/admin-guide/ |
H A D | cputopology.rst | 61 offline: CPUs that are not online because they have been 66 online: CPUs that are online and being scheduled [cpu_online_mask] 69 brought online if they are present. [cpu_possible_mask] 80 being 32. Note also that CPUs 2 and 4-31 are not online but could be 81 brought online as they are both present and possible:: 85 online: 0-1,3 92 online.):: 96 online: 0-1,3
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-online | 1 What: /sys/devices/.../online 5 The /sys/devices/.../online attribute is only present for 6 devices whose bus types provide .online() and .offline() 13 this file, the device bus type's .online() callback is executed 20 type's .online() is executed successfully.
|
H A D | sysfs-devices-memory | 47 is read-write. When read, it returns the online/offline 49 the online/offline state of a memory block using the following 52 # echo online > /sys/devices/system/memory/memoryX/state 60 reading the file will return "online"; the zone information 77 For online memory blocks, it returns in which zone memory 85 the state of an offline memory block to "online". Only one of
|
H A D | sysfs-devices-system-xen_cpu | 12 What: /sys/devices/system/xen_cpu/xen_cpu#/online 16 Interface to online/offline Xen physical cpus 19 to online/offline physical cpus, except cpu0 due to several
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | perf_buffer.c | 54 bool *online; in serial_test_perf_buffer() local 60 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", in serial_test_perf_buffer() 61 &online, &on_len); in serial_test_perf_buffer() 66 if (online[i]) in serial_test_perf_buffer() 95 if (i >= on_len || !online[i]) { in serial_test_perf_buffer() 118 if (i >= on_len || !online[i]) in serial_test_perf_buffer() 146 free(online); in serial_test_perf_buffer()
|
H A D | raw_tp_test_run.c | 15 bool *online = NULL; in test_raw_tp_test_run() local 22 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", &online, in test_raw_tp_test_run() 58 if (!online[i]) in test_raw_tp_test_run() 85 free(online); in test_raw_tp_test_run()
|
/linux/tools/testing/selftests/sched_ext/ |
H A D | hotplug.c | 17 const char *online_path = "/sys/devices/system/cpu/cpu1/online"; 24 static void toggle_online_status(bool online) in toggle_online_status() argument 26 long val = online ? 1 : 0; in toggle_online_status() 32 online ? "online" : "offline", strerror(errno)); in toggle_online_status() 56 /* Testing the offline -> online path, so go offline before starting */ in test_hotplug()
|
/linux/mm/ |
H A D | memory_hotplug.c | 158 * memory_hotplug.online_policy: configure online behavior when onlining without 162 * "auto-movable": online memory to ZONE_MOVABLE if the configuration 172 "Set the online policy (\"contig-zones\", \"auto-movable\") " 179 * online some memory to ZONE_MOVABLE -- e.g., because hotplugged KERNEL memory 186 "in percent for \"auto-movable\" online policy. Default: 301"); 196 "\"auto-movable\" online policy. Default: true"); 326 * memory that will be marked online, so this check should only in check_pfn_span() 342 * Return page for the valid pfn only if the page is online. All pfn 376 * get_dev_pagemap() can determine sub-section online status. in pfn_to_online_page() 664 * Online the pages in MAX_PAGE_ORDER aligned chunks. The callback might in online_pages_range() [all …]
|
/linux/kernel/irq/ |
H A D | matrix.c | 17 bool online; member 81 * irq_matrix_online - Bring the local CPU matrix online 88 BUG_ON(cm->online); in irq_matrix_online() 96 cm->online = true; in irq_matrix_online() 111 cm->online = false; in irq_matrix_offline() 146 if (!cm->online || cm->available <= maxavl) in matrix_find_best_cpu() 167 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 228 if (cm->online) { in irq_matrix_reserve_managed() 278 if (cm->online) { in irq_matrix_remove_managed() 439 if (cm->online) in irq_matrix_free() [all …]
|
H A D | cpuhotplug.c | 36 * CPU then it must contain at least one online CPU. The outgoing CPU in irq_needs_fixup() 37 * has been removed from the online mask already. in irq_needs_fixup() 102 * any online CPU, use the current affinity mask. in migrate_one_irq() 135 * If there are online CPUs in the affinity mask, but they have no in migrate_one_irq() 137 * affinity by migrating to any online CPU. in migrate_one_irq() 140 pr_debug("IRQ%u: set affinity failed for %*pbl, re-try with online CPUs\n", in migrate_one_irq()
|
/linux/arch/s390/include/asm/ |
H A D | physmem_info.h | 55 struct physmem_range online[MEM_INLINED_ENTRIES]; member 73 *start = (unsigned long)physmem_info.online[n].start; in __get_physmem_range() 74 *end = (unsigned long)physmem_info.online[n].end; in __get_physmem_range() 90 * for_each_physmem_usable_range - early online memory range iterator 95 * Walks over detected online memory ranges below usable limit. 100 /* Walks over all detected online memory ranges disregarding usable limit. */
|
/linux/Documentation/driver-api/cxl/linux/ |
H A D | memory-hotplug.rst | 12 1) Default Online Behavior (on/off and zone) 17 Default Online Behavior 19 The default-online behavior of hotplug memory is dictated by the following, 29 2) Online in :code:`ZONE_NORMAL` 30 3) Online in :code:`ZONE_MOVABLE`
|
/linux/Documentation/arch/arm64/ |
H A D | cpu-hotplug.rst | 9 CPUs online/offline using PSCI. This document is about ACPI firmware allowing 51 marked as disabled by firmware. Only the CPU's online/offline behaviour is 59 brought online. Firmware can enforce its policy via PSCI's return codes. e.g. 64 ``enabled`` in the MADT GICC structures, but should have the ``online capable`` 69 CPUs described as ``online capable`` but not ``enabled`` can be set to enabled
|
/linux/drivers/powercap/ |
H A D | dtpm_cpu.c | 278 * The function update_pd_power() uses the online mask to in dtpm_cpu_init() 282 * online mask when the cpuhp_dtpm_cpu_online function is in dtpm_cpu_init() 283 * called, but the CPU is still in the online mask for the in dtpm_cpu_init() 288 * above. The CPU online mask is not up to date when the CPU in dtpm_cpu_init() 291 * For this reason, we need to call the online and offline in dtpm_cpu_init() 292 * callbacks at different moments when the CPU online mask is in dtpm_cpu_init() 300 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "dtpm_cpu:online", in dtpm_cpu_init()
|
/linux/arch/arc/kernel/ |
H A D | mcip.c | 23 * Set mask to halt GFRC if any online core in SMP cluster is halted. 88 /* Update GFRC halt mask as new CPU came online */ in mcip_setup_per_cpu() 92 /* Update MCIP debug mask as new CPU came online */ in mcip_setup_per_cpu() 268 cpumask_t online; in idu_irq_set_affinity() local 272 /* errout if no online cpu per @cpumask */ in idu_irq_set_affinity() 273 if (!cpumask_and(&online, cpumask, cpu_online_mask)) in idu_irq_set_affinity() 278 destination_bits = cpumask_bits(&online)[0]; in idu_irq_set_affinity() 319 * By default send all common interrupts to all available online CPUs. in idu_irq_enable()
|
/linux/Documentation/filesystems/ |
H A D | gfs2-uevents.rst | 19 is successful, an ONLINE uevent will follow. If it is not successful 27 2. ONLINE 30 The ONLINE uevent is generated after a successful mount or remount. It 31 has the same environment variables as the ADD uevent. The ONLINE 57 cluster. For this reason the ONLINE uevent was used when adding a new
|
/linux/include/trace/events/ |
H A D | irq_matrix.h | 75 __field( bool, online ) 88 __entry->online = cmap->online; 98 …TP_printk("bit=%d cpu=%u online=%d avl=%u alloc=%u managed=%u online_maps=%u global_avl=%u, global… 99 __entry->bit, __entry->cpu, __entry->online,
|