disk.4 (66bee50af774673bfaeb4c66a5a82e0ac99e70a4) disk.4 (a51584a2d2fb3731a68eaf93b59e14227e572427)
1.\" Copyright (c) 2020 M. Warner Losh <imp@FreeBSD.org>
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\"

--- 43 unchanged lines hidden (view full) ---

52Get the sector or block size of the device in bytes.
53The sector size is the smallest unit of data which can be transferred
54from this device.
55This is usually a power of 2 but it might not be (e.g. CDROM audio).
56Operations to block devices such as
57.Xr lseek 2 ,
58.Xr read 2 ,
59and
1.\" Copyright (c) 2020 M. Warner Losh <imp@FreeBSD.org>
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\"

--- 43 unchanged lines hidden (view full) ---

52Get the sector or block size of the device in bytes.
53The sector size is the smallest unit of data which can be transferred
54from this device.
55This is usually a power of 2 but it might not be (e.g. CDROM audio).
56Operations to block devices such as
57.Xr lseek 2 ,
58.Xr read 2 ,
59and
60.Xr write
60.Xr write 2
61may only be performed at file offsets that are integral multiple of
62this size.
63.It Dv DIOCGMEDIASIZE
64.Pq Li "off_t"
65Get the size of the entire device in bytes.
66This should be a multiple of the sector size.
67.It Dv DIOCGFWSECTORS
68.Pq Li "u_int"

--- 138 unchanged lines hidden ---
61may only be performed at file offsets that are integral multiple of
62this size.
63.It Dv DIOCGMEDIASIZE
64.Pq Li "off_t"
65Get the size of the entire device in bytes.
66This should be a multiple of the sector size.
67.It Dv DIOCGFWSECTORS
68.Pq Li "u_int"

--- 138 unchanged lines hidden ---