Project

General

Profile

Actions

Bug #6721

closed

tran_setup_pkt(9E) returns int, not a pointer

Added by Joshua M. Clulow about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
manpage - manual pages
Start date:
2016-03-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

In the synopsis of the manual page tran_setup_pkt(9E), we suggest that tran_setup_pkt() should return a pointer to a struct scsi_pkt:

TRAN_SETUP_PKT(9E)            Driver Entry Points           TRAN_SETUP_PKT(9E)

NAME
       tran_setup_pkt, tran_teardown_pkt, tran_pkt_constructor,
       tran_pkt_destructor - SCSI HBA packet allocation and deallocation

SYNOPSIS
       #include <sys/scsi/scsi.h>

       struct scsi_pkt *prefix_tran_setup_pkt(struct scsi_pkt *pkt,
            int (*callback) (caddr_t), caddr_t arg);

Note that the function actually returns an int -- 0 on success, and -1 on failure.

Actions #1

Updated by Robert Mustacchi about 5 years ago

  • Assignee set to Robert Mustacchi
Actions #2

Updated by Electric Monk about 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 44f88c2eeb6a7c329d82467a31c4a501eae16fec

commit  44f88c2eeb6a7c329d82467a31c4a501eae16fec
Author: Robert Mustacchi <rm@joyent.com>
Date:   2016-03-25T23:47:30.000Z

    6721 tran_setup_pkt(9E) returns int, not a pointer
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Reviewed by: Volker A. Brandt <vab@bb-c.de>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Albert Lee <trisk@omniti.com>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Actions

Also available in: Atom PDF