Lines Matching refs:device
238 "Return the name of the terminal device connected to \'fd\'.\n"
5966 "mknod($module, /, path, mode=384, device=0, *, dir_fd=None)\n"
5971 "Create a node in the file system (file, device special file or named pipe)\n"
5975 "device defines the newly created device special file (probably using\n"
5976 "os.makedev()). Otherwise device is ignored.\n"
5987 os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device,
5994 static const char * const _keywords[] = {"path", "mode", "device", "dir_fd", NULL};
6000 dev_t device = 0;
6023 if (!_Py_Dev_Converter(args[2], &device)) {
6038 return_value = os_mknod_impl(module, &path, mode, device, dir_fd);
6052 "major($module, device, /)\n"
6055 "Extracts a device major number from a raw device number.");
6061 os_major_impl(PyObject *module, dev_t device);
6067 dev_t device;
6070 if (!_Py_Dev_Converter(arg, &device)) {
6073 _return_value = os_major_impl(module, device);
6088 "minor($module, device, /)\n"
6091 "Extracts a device minor number from a raw device number.");
6097 os_minor_impl(PyObject *module, dev_t device);
6103 dev_t device;
6106 if (!_Py_Dev_Converter(arg, &device)) {
6109 _return_value = os_minor_impl(module, device);
6127 "Composes a raw device number from the major and minor device numbers.");
7368 "If the device is not a terminal, return None.");