Home
last modified time | relevance | path

Searched refs:reboot (Results 1 - 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/reboot/
H A Dreboot02.c10 * Test whether libc wrapper of reboot(2) system call returns appropriate
15 #include <sys/reboot.h>
16 #include <linux/reboot.h>
40 TST_EXP_FAIL(reboot(tc->cmd), in run()
46 TST_EXP_FAIL(reboot(tc->cmd), in run()
H A Dreboot01.c11 * Basic test of libc wrapper of reboot(2) system call.
14 * which do not perform reboot.
18 #include <sys/reboot.h>
19 #include <linux/reboot.h>
34 TST_EXP_PASS(reboot(tcases[n].cmd), "reboot(%s)", tcases[n].desc); in run()
/third_party/musl/libc-test/src/functionalext/reboot/
H A Dreboot.c16 #include <sys/reboot.h>
27 * @tc.desc : test reboot with flag LINUX_REBOOT_CMD_CAD_ON
32 TEST(reboot(LINUX_REBOOT_CMD_CAD_ON) == 0); in reboot_0010()
37 * @tc.desc : test reboot with flag LINUX_REBOOT_CMD_CAD_OFF
42 TEST(reboot(LINUX_REBOOT_CMD_CAD_OFF) == 0); in reboot_0020()
/third_party/rust/crates/nix/src/sys/
H A Dreboot.rs32 pub fn reboot(how: RebootMode) -> Result<Infallible> { in reboot() functions
33 unsafe { libc::reboot(how as libc::c_int) }; in reboot()
37 /// Enable or disable the reboot keystroke (Ctrl-Alt-Delete).
39 /// Corresponds to calling `reboot(RB_ENABLE_CAD)` or `reboot(RB_DISABLE_CAD)` in C.
46 let res = unsafe { libc::reboot(cmd) }; in set_cad_enabled()
H A Dmod.rs99 #![feature = "reboot"]
100 pub mod reboot; modules
/third_party/musl/porting/linux/user/src/linux/
H A Dreboot.c16 #include <sys/reboot.h>
23 weak_alias(__reboot, reboot) in __reboot()
/third_party/musl/src/linux/
H A Dreboot.c1 #include <sys/reboot.h>
8 weak_alias(__reboot, reboot);
/third_party/toybox/porting/liteos_a/toys/other/
H A Dreboot.c0 /* reboot.c - Restart, halt or powerdown the system.
5 USE_REBOOT(NEWTOY(reboot, "", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
8 bool "reboot"
11 usage: reboot
18 #include <sys/reboot.h>
26 toys.exitval = reboot(types[idx]); in reboot_main()
/third_party/toybox/toys/other/
H A Dreboot.c0 /* reboot.c - Restart, halt or powerdown the system.
5 USE_REBOOT(NEWTOY(reboot, "d:fn", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
6 USE_REBOOT(OLDTOY(halt, reboot, TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
7 USE_REBOOT(OLDTOY(poweroff, reboot, TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
10 bool "reboot"
13 usage: reboot/halt/poweroff [-fn] [-d DELAY]
18 -f Force reboot (don't signal init, reboot directly)
19 -n Don't sync filesystems before reboot
24 #include <sys/reboot
[all...]
H A Doneit.c27 and SIGTERM or SIGINT reboot.
32 #include <sys/reboot.h>
46 // point it calls sync() and reboot(). I could stick a kill -1 in there.
57 // PID 1 can't call reboot() because it kills the task that calls it, in oneit_signaled()
58 // which causes the kernel to panic before the actual reboot happens. in oneit_signaled()
61 if (!vfork()) reboot(action); in oneit_signaled()
112 // Give reboot() time to kick in, or avoid rapid spinning if exec failed in oneit_main()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dreboot.h15 int reboot(int);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dreboot.h15 int reboot(int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dreboot.h15 int reboot(int);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dreboot.h15 int reboot(int);
/third_party/musl/porting/linux/user/include/sys/
H A Dreboot.h34 * @brief reboots the device, or enables/disables the reboot keystroke.
35 * @param type commands accepted by the reboot() system call.
44 * @return reboot result.
48 int reboot(int);
/third_party/musl/include/sys/
H A Dreboot.h18 * @brief reboots the device, or enables/disables the reboot keystroke.
19 * @param type commands accepted by the reboot() system call.
28 * @return reboot result.
32 int reboot(int);
/third_party/ltp/testcases/kernel/mce-test/drivers/kdump/
H A Ddriver.sh39 @reboot cd "$(pwd)"; ${0} $conf >> $WDIR/log 2>&1; cat $WDIR/log > /dev/console
177 export reboot=1
229 echo "System is going to reboot."
/third_party/toybox/toys/pending/
H A Dinit.c23 #include <sys/reboot.h>
360 error_msg("Requesting system reboot"); in halt_poweroff_reboot_handler()
371 reboot(reboot_magic_no); in halt_poweroff_reboot_handler()
399 reboot(RB_HALT_SYSTEM); in restart_init_handler()
478 xsignal(SIGTERM, halt_poweroff_reboot_handler);//reboot in init_main()
/third_party/skia/tools/skpbench/
H A D_adb.py50 def reboot(self): member in Adb
52 self.shell('reboot')
H A D_hardware_android.py73 self._adb.reboot() # some devices struggle waking up; just hard reboot.
125 # pick something lower, so it doesn't get too hot (it'd reboot)
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-system.h26 * and performing common system operations like reboot.
164 int (*reboot)(void); member
/third_party/ltp/testcases/kdump/
H A Drunkdump.sh17 @reboot cd "$(pwd)"; cd ..; ${0} >>/tmp/kdump-$(date +%F-%T).log 2>&1
199 echo "System is going to reboot."
246 # Some tests could not reboot target. They can hung up
248 # tests. So we are going to reboot if we are in wrong
252 echo "$(date +%F-%T): manually reboot for test ${i}." >>"${ldir}/status"
/third_party/toybox/generated/
H A Dglobals.h377 // toys/other/reboot.c
1665 struct reboot_data reboot; member
/third_party/vk-gl-cts/android/cts/runner/tests/src/com/drawelements/deqp/runner/
H A DDeqpTestRunnerTest.java1562 mockDevice.reboot(); in setRecoveryExpectationReboot()
1803 mockDevice.reboot(); in testRecovery_unkillableProcess()
/third_party/vk-gl-cts/android/cts/runner/src/com/drawelements/deqp/runner/
H A DDeqpTestRunner.java883 mState = MachineState.REBOOT; // the next step is to reboot in recoverConnectionRefused()
894 // Second failure in a row, try to reboot in recoverConnectionRefused()
909 throw new DeviceNotAvailableException("failed to connect after reboot", in recoverConnectionRefused()
943 mState = MachineState.REBOOT; // the next step is to reboot in recoverComLinkKilled()
958 // Third failure in a row, try to reboot in recoverComLinkKilled()
973 throw new DeviceNotAvailableException("link killed after reboot", in recoverComLinkKilled()
1022 mDevice.reboot(); in rebootDevice()

Completed in 16 milliseconds

12