Home
last modified time | relevance | path

Searched full:dev_t (Results 1 – 25 of 202) sorted by relevance

123456789

/freebsd/contrib/libarchive/libarchive/
H A Darchive_pack_dev.c105 dev_t
108 dev_t dev = 0;
122 static dev_t in pack_native()
125 dev_t dev = 0; in pack_native()
141 #define makedev_freebsd(x,y) ((dev_t)((((x) << 8) & 0x0000ff00) | \ in pack_netbsd()
144 static dev_t
147 dev_t dev = 0;
163 #define makedev_8_8(x,y) ((dev_t)((((x) << 8) & 0x0000ff00) | \ in pack_freebsd()
166 static dev_t
169 dev_t de
[all...]
H A Darchive_entry_stat.386 .Fn archive_entry_set_dev "struct archive_entry *a" "dev_t dev"
92 .Fn archive_entry_set_devmajor "struct archive_entry *a" "dev_t major"
96 .Fn archive_entry_set_devminor "struct archive_entry *a" "dev_t minor"
118 .Fn archive_entry_set_rdev "struct archive_entry *a" "dev_t dev"
120 .Fn archive_entry_set_rdevmajor "struct archive_entry *a" "dev_t major"
122 .Fn archive_entry_set_rdevminor "struct archive_entry *a" "dev_t minor"
H A Darchive_entry_private.h129 dev_t aest_dev;
130 dev_t aest_devmajor;
131 dev_t aest_devminor;
133 dev_t aest_rdev;
134 dev_t aest_rdevmajor;
135 dev_t aest_rdevminor;
H A Darchive_platform_stat.h29 dev_t st_dev;
30 dev_t st_rdev;
/freebsd/sys/compat/linux/
H A Dlinux.h37 * Linux dev_t conversion routines.
39 * As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit quantity
41 * The in-kernel dev_t encoded as MMMmmmmm, where M is a hex digit of the
43 * The user-space dev_t encoded as mmmM MMmm, where M and m is the major
45 * systems where dev_t is 16 bits wide, encoded as MMmm.
46 * In glibc dev_t is a 64-bit quantity, with 32-bit major and minor numbers,
48 * kernel and with legacy systems where dev_t is 16 bits wide.
50 * In the FreeBSD dev_t is a 64-bit quantity. The major and minor numbers
63 linux_new_encode_dev(dev_t _dev) in linux_new_encode_dev()
70 linux_encode_major(dev_t _dev) in linux_encode_major()
[all …]
/freebsd/share/doc/papers/devfs/
H A Dpaper.me659 .sh 1 "Cleaning up before we build: struct specinfo and dev_t"
666 POSIX has defined a type called ``dev_t'' which is the identity of a device.
669 A dev_t is constructed by logically OR'ing
673 can be retrieved from the dev_t by a simple masking operation.
720 we find the dev_t which is used to reference the device driver.
723 the dev_t, indexing through the global devsw[] array to locate
726 The device driver will extract the minor# from the dev_t and use
738 .sh 2 "The new vnode/inode/dev_t layout"
767 In userland, a dev_t is still the logical OR of the major# and
769 In the kernel a dev_t is now a pointer to a struct specinfo.
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_mknodat.c50 static dev_t get_devnull(void);
52 static dev_t
74 dev_t dev; in ATF_TC_BODY()
96 dev_t dev; in ATF_TC_BODY()
116 dev_t dev; in ATF_TC_BODY()
132 dev_t dev; in ATF_TC_BODY()
/freebsd/tests/sys/fs/fusefs/
H A Dmknod.cc72 mode_t mode, dev_t dev) in expect_mknod()
115 mode_t mode, dev_t dev) in expect_mknod()
150 dev_t rdev = 0xfe00; /* /dev/vda's device number on Linux */ in TEST_F()
165 dev_t rdev = 54; /* /dev/fuse's device number */ in TEST_F()
207 dev_t rdev = VNOVAL; /* Fifos don't have device numbers */ in TEST_F()
229 dev_t rdev = -1; /* Really it's a don't care */ in TEST_F()
261 dev_t rdev = -1; /* Really it's a don't care */ in TEST_F()
294 dev_t rdev = VNOVAL; /* whiteouts don't have device numbers */ in TEST_F()
310 dev_t rdev = VNOVAL; in TEST_F()
/freebsd/share/man/man3/
H A Dmakedev.335 .Ft dev_t
38 .Fn major "dev_t dev"
40 .Fn minor "dev_t dev"
58 .Vt dev_t ,
87 .Vt dev_t ,
/freebsd/sys/sys/
H A Dtypes.h104 typedef __dev_t dev_t; /* device number or struct cdev */ typedef
321 * The major and minor numbers are encoded in dev_t as MMMmmmMm (where
323 * constrained by compatibility with 16-bit and 32-bit dev_t's. The
333 __major(dev_t _d) in __major()
339 __minor(dev_t _d) in __minor()
344 static __inline dev_t
347 return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) | in __makedev()
348 ((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff)); in __makedev()
/freebsd/lib/libprocstat/
H A Dcommon_kvm.c102 * The st_dev from stat(2) is a dev_t. These kernel structures in ufs_filestat()
103 * contain cdev pointers. We need to convert to dev_t to make in ufs_filestat()
185 * associated dev_t
187 dev_t
195 return ((dev_t)priv.cdp_inode); in dev2udev()
197 warnx("can't convert cdev *%p to a dev_t\n", dev); in dev2udev()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dmlfk_ipl.c55 static dev_t ipf_devs[IPL_LOGSIZE];
74 static int ipfopen(dev_t, int, int, struct proc *);
75 static int ipfclose(dev_t, int, int, struct proc *);
76 static int ipfread(dev_t, struct uio *, int);
77 static int ipfwrite(dev_t, struct uio *, int);
157 static int ipfpoll(dev_t dev, int events, struct proc *td);
436 ipfpoll(dev_t dev, int events, struct proc *td) in ipfpoll()
489 ipfopen(dev_t dev, int flags) in ipfopen()
524 ipfclose(dev_t dev, int flags) in ipfclose()
547 dev_t dev;
[all …]
/freebsd/share/examples/kld/cdev/module/
H A Dcdev.c105 printf("mydev_open: dev_t=%lu, flag=%x, otyp=%x, procp=%p\n", in mydev_open()
117 printf("mydev_close: dev_t=%lu, flag=%x, otyp=%x, procp=%p\n", in mydev_close()
129 printf("mydev_ioctl: dev_t=%lu, cmd=%lx, arg=%p, mode=%x procp=%p\n", in mydev_ioctl()
153 printf("mydev_write: dev_t=%lu, uio=%p, ioflag=%d\n", in mydev_write()
173 printf("mydev_read: dev_t=%lu, uio=%p, ioflag=%d\n", in mydev_read()
/freebsd/sys/security/mac_veriexec/
H A Dmac_veriexec_internal.h79 int mac_veriexec_metadata_get_file_flags(dev_t fsid, long fileid,
81 int mac_veriexec_metadata_get_file_info(dev_t fsid, long fileid,
86 int mac_veriexec_metadata_unmounted(dev_t fsid, struct thread *td);
H A Dveriexec_metadata.c56 dev_t fsid; /**< file system identifier of the mount point */
104 get_veriexec_file(struct veriexec_devhead *head, dev_t fsid, long fileid, in get_veriexec_file()
233 mac_veriexec_metadata_has_file(dev_t fsid, long fileid, unsigned long gen) in mac_veriexec_metadata_has_file()
254 free_veriexec_dev(dev_t fsid, struct veriexec_devhead *head) in free_veriexec_dev()
305 find_veriexec_dev(dev_t fsid, struct veriexec_devhead *head) in find_veriexec_dev()
405 mac_veriexec_metadata_unmounted(dev_t fsid, struct thread *td) in mac_veriexec_metadata_unmounted()
440 mac_veriexec_metadata_get_file_flags(dev_t fsid, long fileid, unsigned long gen, in mac_veriexec_metadata_get_file_flags()
600 mac_veriexec_metadata_get_file_label(dev_t fsid, long fileid, in mac_veriexec_metadata_get_file_label()
635 mac_veriexec_metadata_add_file(int file_dev, dev_t fsid, long fileid, in mac_veriexec_metadata_add_file()
776 mac_veriexec_metadata_get_file_info(dev_t fsid, long fileid, unsigned long gen, in mac_veriexec_metadata_get_file_info()
/freebsd/contrib/ntp/ntpd/
H A Dntp_ppsdev.c156 dev_t rdev) in findDevByDevId()
189 dev_t *out, in getCharDevId()
214 dev_t *pTty, in getPpsTuple()
215 dev_t *pPps) in getPpsTuple()
260 dev_t ttyId , in findPpsDevId()
261 dev_t *pPpsId) in findPpsDevId()
266 dev_t othId, ppsId; in findPpsDevId()
311 dev_t ttyId, ppsId; in findMatchingPpsDev()
/freebsd/cddl/contrib/opensolaris/lib/libcmdutils/
H A Dlibcmdutils.h86 dev_t node_dev;
92 dev_t node_dev;
143 extern int add_tnode(avl_tree_t **, dev_t, ino_t);
145 extern int add_tnode(avl_tree_t **, dev_t, ino64_t);
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dcdev.h52 dev_t dev;
76 cdev_add(struct linux_cdev *cdev, dev_t dev, unsigned count) in cdev_add()
104 cdev_add_ext(struct linux_cdev *cdev, dev_t dev, uid_t uid, gid_t gid, int mode) in cdev_add_ext()
/freebsd/bin/pax/
H A Dtables.h58 dev_t dev; /* files device number */
122 dev_t dev; /* the orig device number we now have to map */
129 dev_t dev; /* the new device id we use */
143 dev_t dev; /* dev and inode for fast lookup */
/freebsd/usr.bin/lastcomm/
H A Dlastcomm.c51 const char *getdev(dev_t);
242 getdev(dev_t dev) in getdev()
244 static dev_t lastdev = (dev_t)-1; in getdev()
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-mknod.m412 umode_t u, dev_t d) { return 0; }
30 umode_t u, dev_t d) { return 0; }
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dsysmacros.h132 #define getmajor(x) (major_t)((((dev_t)(x)) >> L_BITSMINOR) & L_MAXMAJ)
160 #define makedevice(x, y) (dev_t)(((dev_t)(x) << L_BITSMINOR) | ((y) & L_MAXMIN))
179 #define getemajor(x) (major_t)((((dev_t)(x) >> L_BITSMINOR) > L_MAXMAJ) ? \
180 NODEV : (((dev_t)(x) >> L_BITSMINOR) & L_MAXMAJ))
216 (dev_t)(((dev_t)(((x) >> O_BITSMINOR) & O_MAXMAJ) << L_BITSMINOR) | \
/freebsd/lib/libc/sys/
H A Dmknod.c35 int __sys_mknodat(int, const char *, mode_t, dev_t);
38 mknod(const char *path, mode_t mode, dev_t dev) in mknod()
/freebsd/contrib/mknod/
H A Dpack_dev.h38 typedef dev_t portdev_t;
48 #define makedev_netbsd(x,y) ((dev_t)((((x) << 8) & 0x000fff00) | \
/freebsd/lib/libc/gen/
H A Ddevname.340 .Fn devname "dev_t dev" "mode_t type"
42 .Fn devname_r "dev_t dev" "mode_t type" "char *buf" "int len"

123456789