Changeset View
Changeset View
Standalone View
Standalone View
lib/libcam/cam.3
Show All 21 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd July 6, 2020 | .Dd November 23, 2020 | ||||
.Dt CAM 3 | .Dt CAM 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm cam_open_device , | .Nm cam_open_device , | ||||
.Nm cam_open_spec_device , | .Nm cam_open_spec_device , | ||||
.Nm cam_open_btl , | .Nm cam_open_btl , | ||||
.Nm cam_open_pass , | .Nm cam_open_pass , | ||||
.Nm cam_close_device , | .Nm cam_close_device , | ||||
▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | |||||
.Xr open 2 | .Xr open 2 | ||||
routines | routines | ||||
described above. | described above. | ||||
This function should be called when the | This function should be called when the | ||||
.Va cam_device | .Va cam_device | ||||
structure was allocated by the caller, rather than the CAM library. | structure was allocated by the caller, rather than the CAM library. | ||||
.Pp | .Pp | ||||
.Fn cam_getccb | .Fn cam_getccb | ||||
allocates a CCB | allocates a prezeroed CCB | ||||
using | using | ||||
.Xr malloc 3 | .Xr calloc 3 | ||||
and sets fields in the CCB header using values from the | and sets fields in the CCB header using values from the | ||||
.Va cam_device | .Va cam_device | ||||
structure. | structure. | ||||
.Pp | .Pp | ||||
.Fn cam_send_ccb | .Fn cam_send_ccb | ||||
sends the given | sends the given | ||||
.Va ccb | .Va ccb | ||||
to the | to the | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |