Home
last modified time | relevance | path

Searched full:os (Results 1 – 25 of 1309) sorted by relevance

12345678910>>...53

/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py3 import os
18 if not os.path.exists(sysfs_root):
60 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern')
64 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0])
68 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1])
71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
75 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
80 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0])
84 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1])
106 return os
[all...]
/linux/drivers/block/drbd/
H A Ddrbd_state.c25 union drbd_state os; member
280 static void after_state_ch(struct drbd_device *device, union drbd_state os,
285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns);
286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os,
464 * @os: old (current) state.
468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg()
473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg()
[all …]
/linux/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py9 import os
38 return os.path.isfile(kmemleak)
59 assert os.path.isfile(folder + "guid") == True
60 assert os.path.isfile(folder + "provision_akc") == True
61 assert os.path.isfile(folder + "provision_cap") == True
62 assert os.path.isfile(folder + "state_certificate") == True
63 assert os.path.isfile(folder + "registers") == True
67 mode = os.stat(folder + "guid").st_mode & 0o777
69 mode = os.stat(folder + "registers").st_mode & 0o777
71 mode = os.stat(folder + "provision_akc").st_mode & 0o777
[all …]
/linux/Documentation/firmware-guide/acpi/
H A Dchromeos-acpi-device.rst4 Chrome OS ACPI Device
7 Hardware functionality specific to Chrome OS is exposed through a Chrome OS ACPI device.
8 The plug and play ID of a Chrome OS ACPI device is GGL0001 and the hardware ID is
19 - Chrome OS switch positions
22 - Chrome OS hardware ID
25 - Chrome OS firmware version
28 - Chrome OS read-only firmware version
31 - Chrome OS boot information
34 - Chrome OS GPIO assignments
37 - Chrome OS NVRAM locations
[all …]
H A Dosi.rst24 but where Linux was installed to replace the original OS (Windows or OSX).
71 interpreter in the kernel would return to it a string identifying the OS:
77 The idea was on a platform tasked with running multiple OS's,
78 the BIOS could use _OS to enable devices that an OS
80 necessary to make the platform compatible with that pre-existing OS.
83 of every possible version of the OS that would run on it, and needed to know
84 all the quirks of those OS's. Certainly it would make more sense
85 for the BIOS to ask *specific* things of the OS, such
102 and asks the OS: "YES/NO, are you compatible with this interface?"
104 eg. _OSI("3.0 Thermal Model") would return TRUE if the OS knows how
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-mic9 Integrated Core (MIC) architecture that runs a Linux OS.
42 MIC device in the context of the card OS. Possible values that
47 "ready" The MIC device is ready to boot the card OS.
52 "booting" The MIC device has initiated booting a card OS.
54 "shutting_down" The card OS is shutting down.
60 operations depending upon the current state of the card OS.
65 "boot" Boot the card OS image specified by the combination
69 "shutdown" Initiates card OS shutdown.
77 An Intel MIC device runs a Linux OS during its operation. This
78 OS can shutdown because of various reasons. When read, this
[all …]
/linux/scripts/
H A Dchecktransupdate.py26 import os
46 pipe = os.popen(command)
76 pipe = os.popen(command)
87 pipe = os.popen(command)
100 if not os.path.isfile(opath):
134 script_path = os.path.dirname(os.path.abspath(__file__))
135 linux_path = os.path.join(script_path, "..")
136 if not os.path.isdir(f"{linux_path}/Documentation/translations/{locale}"):
149 if os.path.basename(pwd) in exclude_folders:
152 for item in os.listdir(pwd):
[all …]
H A Djobserver-exec10 import os, sys, errno
18 flags = os.environ['MAKEFLAGS']
35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK)
36 writer = os.open(path, os.O_WRONLY)
41 reader = os.open("/proc/self/fd/%d" % (reader),
42 os.O_RDONLY | os.O_NONBLOCK)
47 slot = os.read(reader, 8)
55 os.write(writer, jobs)
69 os.environ['PARALLELISM'] = '%d' % (claim)
75 os.write(writer, jobs)
/linux/drivers/net/fddi/skfp/
H A Dhwmtm.c263 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init()
273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
276 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init()
356 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring()
393 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring()
426 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver()
427 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver()
449 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
[all …]
H A Dskfddi.c265 smc->os.dev = dev; in skfp_init_one()
266 smc->os.bus_type = SK_BUS_TYPE_PCI; in skfp_init_one()
267 smc->os.pdev = *pdev; in skfp_init_one()
268 smc->os.QueueSkb = MAX_TX_QUEUE_LEN; in skfp_init_one()
269 smc->os.MaxFrameSize = MAX_FRAME_SIZE; in skfp_init_one()
270 smc->os.dev = dev; in skfp_init_one()
273 smc->os.ResetRequested = FALSE; in skfp_init_one()
274 skb_queue_head_init(&smc->os.SendSkbQueue); in skfp_init_one()
299 if (smc->os.SharedMemAddr) in skfp_init_one()
300 dma_free_coherent(&pdev->dev, smc->os.SharedMemSize, in skfp_init_one()
[all …]
/linux/Documentation/security/tpm/
H A Dxen-tpmfront.rst24 mini-os to reduce memory and processor overhead.
26 This mini-os vTPM subsystem was built on top of the previous vTPM work done by
44 | mini-os/tpmback |
50 | mini-os/tpmfront |
55 | mini-os/tpmback |
61 | mini-os/tpm_tis |
77 * mini-os/tpmback:
78 Mini-os TPM backend driver. The Linux frontend driver
84 A mini-os stub domain that implements a vTPM. There is a
89 * mini-os/tpmfront:
[all …]
/linux/Documentation/filesystems/
H A Dhpfs.rst49 When to mark filesystem dirty so that OS/2 checks it.
57 one hour more, than under os/2, use timeshift=-3600.
63 As in OS/2, filenames are case insensitive. However, shell thinks that names
70 OS/2 ignores dots and spaces at the end of file name, so this driver does as
78 On HPFS partitions, OS/2 can associate to each file a special information called
81 variable length. OS/2 stores window and icon positions and file types there. So
107 incompatible with OS/2. OS/2 PmShell symlinks are not supported because they are
118 file has a pointer to codepage its name is in. However OS/2 was created in
120 support is quite buggy. I have Czech OS/2 working in codepage 852 on my disk.
121 Once I booted English OS/2 working in cp 850 and I created a file on my 852
[all …]
/linux/tools/testing/kunit/
H A Dkunit_kernel.py13 import os
32 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
33 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
121 kernel_path = os.path.join(build_dir, self._kernel_path)
154 linux_bin = os.path.join(build_dir, 'linux')
164 return os.path.join(build_dir, KCONFIG_PATH)
167 return os.path.join(build_dir, KUNITCONFIG_PATH)
170 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
176 if not os
[all...]
/linux/Documentation/block/
H A Dstat.rst29 read I/Os requests number of read I/Os processed
30 read merges requests number of read I/Os merged with in-queue I/O
33 write I/Os requests number of write I/Os processed
34 write merges requests number of write I/Os merged with in-queue I/O
37 in_flight requests number of I/Os currently in flight
40 discard I/Os requests number of discard I/Os processed
41 discard merges requests number of discard I/Os merged with in-queue I/O
44 flush I/Os requests number of flush I/Os processed
48 read I/Os, write I/Os, discard I/0s
53 flush I/Os
/linux/drivers/scsi/elx/efct/
H A Defct_hw.c50 struct efct *efct = hw->os; in efct_hw_read_max_dump_size()
66 efc_log_debug(hw->os, "set dump location cmd failed\n"); in efct_hw_read_max_dump_size()
73 efc_log_debug(hw->os, "Dump size %x\n", hw->dump_size); in efct_hw_read_max_dump_size()
85 struct efct *efct = hw->os; in __efct_read_topology_cb()
88 efc_log_debug(hw->os, "bad status cqe=%#x mqe=%#x\n", status, in __efct_read_topology_cb()
170 struct efct *efct = hw->os; in efct_hw_cb_link()
183 efc_log_info(hw->os, "Link Up, NPORT, speed is %d\n", in efct_hw_cb_link()
193 efc_log_info(hw->os, "Link Up, LOOP, speed is %d\n", in efct_hw_cb_link()
203 efc_log_debug(hw->os, "READ_TOPOLOGY failed\n"); in efct_hw_cb_link()
205 efc_log_info(hw->os, "%s(%#x), speed is %d\n", in efct_hw_cb_link()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py8 import os, sys
10 LINUX_ROOT = os.path.abspath(os.path.join(__file__,
11 os.pardir, os.pardir, os.pardir, os.pardir, os.pardir))
12 BPFTOOL_DIR = os.getenv('BPFTOOL_DIR',
13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool'))
14 BPFTOOL_BASHCOMP_DIR = os.getenv('BPFTOOL_BASHCOMP_DIR',
15 os.path.join(BPFTOOL_DIR, 'bash-completion'))
16 BPFTOOL_DOC_DIR = os.getenv('BPFTOOL_DOC_DIR',
17 os.path.join(BPFTOOL_DIR, 'Documentation'))
18 INCLUDE_DIR = os.getenv('INCLUDE_DIR',
[all …]
/linux/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py24 import os
33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "intel_pstate_tracer"))
68 if os.path.exists(file_name):
85 if os.path.exists(file_name):
100 if os.path.exists(file_name):
178 if os.path.exists('cpu.csv'):
179 os.remove('cpu.csv')
277 location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
278 file_name = os.path.join(location, arg)
302 if not os.path.exists('results'):
[all …]
/linux/Documentation/PCI/
H A Dacpi-info.rst8 OS might use unless there's another way for the OS to find it [1, 2].
17 described via ACPI. The OS can discover them via the standard PCI
25 namespace [2]. The _CRS is like a generalized PCI BAR: the OS can read
27 a driver for the device [3]. That's important because it means an old OS
28 can work correctly even on a system with new devices unknown to the OS.
29 The new devices might not do anything, but the OS can at least make sure no
33 reserving address space. The static tables are for things the OS needs to
35 is defined, an old OS needs to operate correctly even though it ignores the
37 OS; a static table does not.
39 If the OS is expected to manage a non-discoverable device described via
[all …]
/linux/drivers/gpu/drm/tegra/
H A Driscv.c40 struct tegra_drm_riscv_descriptor *os = &riscv->os_desc; in tegra_drm_riscv_read_descriptors() local
54 READ_PROP("nvidia,os-manifest-offset", &os->manifest_offset); in tegra_drm_riscv_read_descriptors()
55 READ_PROP("nvidia,os-code-offset", &os->code_offset); in tegra_drm_riscv_read_descriptors()
56 READ_PROP("nvidia,os-data-offset", &os->data_offset); in tegra_drm_riscv_read_descriptors()
60 bl->data_offset == 0 && os->manifest_offset == 0 && in tegra_drm_riscv_read_descriptors()
61 os->code_offset == 0 && os->data_offset == 0) { in tegra_drm_riscv_read_descriptors()
/linux/tools/testing/selftests/tc-testing/
H A Dtdc_config_local_template.py7 import os
9 ENVIR = os.environ.copy()
11 ENV_LD_LIBRARY_PATH = os.getenv('LD_LIBRARY_PATH', '')
12 ENV_OTHER_LIB = os.getenv('OTHER_LIB', '')
17 EXTRA_NAMES['SOME_BIN'] = os.path.join(os.getenv('OTHER_BIN', ''), 'some_bin')
/linux/tools/testing/selftests/x86/bugs/
H A Dits_ret_alignment.py22 import os, sys, argparse
25 this_dir = os.path.dirname(os.path.realpath(__file__))
43 if len(os.sys.argv) > 1:
44 arg_vmlinux = os.sys.argv[1]
45 if not os.path.exists(arg_vmlinux):
48 os.makedirs(f"/usr/lib/debug/lib/modules/{os.uname().release}", exist_ok=True)
49 os.system(f'cp {arg_vmlinux} /usr/lib/debug/lib/modules/$(uname -r)/vmlinux')
51 vmlinux = f"/usr/lib/debug/lib/modules/{os.uname().release}/vmlinux"
52 if not os.path.exists(vmlinux):
H A Dits_indirect_alignment.py22 import os, sys, argparse
25 this_dir = os.path.dirname(os.path.realpath(__file__))
48 if len(os.sys.argv) > 1:
49 arg_vmlinux = os.sys.argv[1]
50 if not os.path.exists(arg_vmlinux):
53 os.makedirs(f"/usr/lib/debug/lib/modules/{os.uname().release}", exist_ok=True)
54 os.system(f'cp {arg_vmlinux} /usr/lib/debug/lib/modules/$(uname -r)/vmlinux')
56 vmlinux = f"/usr/lib/debug/lib/modules/{os.uname().release}/vmlinux"
57 if not os.path.exists(vmlinux):
/linux/tools/cgroup/
H A Diocost_coef_gen.py25 import os
64 devname = os.path.basename(devname).decode('utf-8').strip()
69 devname = os.path.basename(os.path.dirname(parents[0]))
70 rdev = os.stat(f'/dev/{devname}').st_rdev
71 return (devname, f'{os.major(rdev)}:{os.minor(rdev)}')
76 if os.path.isfile(path) and os.stat(path).st_size == size:
127 devname = os.path.basename(args.testdev)
128 rdev = os.stat(f'/dev/{devname}').st_rdev
129 devno = f'{os.major(rdev)}:{os.minor(rdev)}'
/linux/Documentation/devicetree/bindings/gpu/host1x/
H A Dnvidia,tegra234-nvdec.yaml88 nvidia,os-manifest-offset:
94 nvidia,os-code-offset:
100 nvidia,os-data-offset:
118 - nvidia,os-manifest-offset
119 - nvidia,os-code-offset
120 - nvidia,os-data-offset
153 nvidia,os-manifest-offset = <0>;
154 nvidia,os-data-offset = <0>;
155 nvidia,os-code-offset = <0>;
/linux/drivers/gpu/drm/ci/
H A Dcheck-patch.py11 import os
12 import os.path
16 repourl = "https://gitlab.freedesktop.org/%s.git" % os.environ["CI_MERGE_REQUEST_PROJECT_PATH"]
21 os.environ["GIT_DEPTH"] = "1000"
24 subprocess.check_call(["git", "fetch", "check-patch", os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NA…
29 … "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"],
50 "--types", os.environ["CHECKPATCH_TYPES"],

12345678910>>...53