PT(4) BSD Kernel Interfaces Manual PT(4)NAME
pt -- SCSI processor type driver
SYNOPSIS
device pt
DESCRIPTION
The pt driver provides support for a SCSI processor type device. These are usually scanners and other devices using the SCSI link as a com-
munication interface with device specific commands embedded in the data stream.
A SCSI adapter must be separately configured into the system before this driver can be used.
This device supports read(2) and write(2), and the ioctl(2) calls described below.
IOCTLS
The following ioctl(2) calls are supported by the pt driver. They are defined in the header file <sys/ptio.h>.
PTIOCGETTIMEOUT This ioctl allows userland applications to fetch the current pt driver read and write timeout. The value returned is in
seconds.
PTIOCSETTIMEOUT This ioctl allows userland applications to set the current pt driver read and write timeouts. The value should be in sec-
onds.
FILES
/dev/ptN the Nth processor device.
SEE ALSO cam(4)HISTORY
The pt driver appeared in FreeBSD 2.1.
BSD March 2, 1995 BSD
Check Out this Related Man Page
PASS(4) BSD Kernel Interfaces Manual PASS(4)NAME
pass -- CAM application passthrough driver
SYNOPSIS
device pass
DESCRIPTION
The pass driver provides a way for userland applications to issue CAM CCBs to the kernel.
Since the pass driver allows direct access to the CAM subsystem, system administrators should exercise caution when granting access to this
driver. If used improperly, this driver can allow userland applications to crash a machine or cause data loss.
The pass driver attaches to every SCSI device found in the system. Since it attaches to every device, it provides a generic means of access-
ing SCSI devices, and allows the user to access devices which have no "standard" peripheral driver associated with them.
KERNEL CONFIGURATION
It is only necessary to configure one pass device in the kernel; pass devices are automatically allocated as SCSI devices are found.
IOCTLS
CAMIOCOMMAND This ioctl takes most kinds of CAM CCBs and passes them through to the CAM transport layer for action. Note that some CCB
types are not allowed through the passthrough device, and must be sent through the xpt(4) device instead. Some examples of
xpt-only CCBs are XPT_SCAN_BUS, XPT_DEV_MATCH, XPT_RESET_BUS, XPT_SCAN_LUN, XPT_ENG_INQ, and XPT_ENG_EXEC. These CCB types
have various attributes that make it illogical or impossible to service them through the passthrough interface.
CAMGETPASSTHRU This ioctl takes an XPT_GDEVLIST CCB, and returns the passthrough device corresponding to the device in question. Although
this ioctl is available through the pass driver, it is of limited use, since the caller must already know that the device in
question is a passthrough device if they are issuing this ioctl. It is probably more useful to issue this ioctl through the
xpt(4) device.
FILES
/dev/passn Character device nodes for the pass driver. There should be one of these for each device accessed through the CAM subsystem.
DIAGNOSTICS
None.
SEE ALSO cam(3), cam_cdbparse(3), cam(4), xpt(4), camcontrol(8)HISTORY
The CAM passthrough driver first appeared in FreeBSD 3.0.
AUTHORS
Kenneth Merry <ken@FreeBSD.org>
BUGS
It might be nice to have a way to asynchronously send CCBs through the passthrough driver. This would probably require some sort of
read/write interface or an asynchronous ioctl interface.
BSD October 10, 1998 BSD
Hi All,
I have been trying to use the option -S in sudo for quite some time now but have not been successful. I get the error "Inappropriate ioctl for device" most of the time. Can anyone please tell me how to use this option to pass the password.
Your help is appreciated.
Thanks,
Ambika (2 Replies)
When I try to format a slice in Solaris 10 I get the follow error :confused: :
-bash-3.00# mkfs /dev/dsk/c1d0s5 18877824
Can not determine partition size: Inappropriate ioctl for device
Some format command output:....
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 38735 alt 2... (0 Replies)
Hello,
I have a cron entry:
59 23 * * * . $HOME/.profile;mydate=`date '+%Y%m%d'`;mv filename filename_$mydate
Which works fine interactively, but gives me the following error when it runs in cron:
Your "cron" job on servername
. $HOME/.profile;mydate=`date '+
produced the... (4 Replies)
When I try to format a slice in Solaris 10 I get the follow error :
-bash-3.00# mkfs /dev/dsk/c1d0s5 18877824
Can not determine partition size: Inappropriate ioctl for device
Some format command output:....
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 38735 alt 2 hd 64 sec 63>... (2 Replies)
I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr
is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
hai friend,
I am new to Linux, i need a book for Linux basic and Linux device driver ..
plz send the book name and author(Easy to learn and mostly used by programmers) and also send the link if it is available in Net...
Thank you.
... (0 Replies)
Dear all,
Problem goes like this:
I have a shell script which when run manually runs perfectly.
When same script is executed through a job schdeduler I get an error as Inappropriate ioctl for device and the script fails.
This problems seems quite guiling to me.
Any clues are heartly... (11 Replies)
Hi All,
I have a device driver that uses UARTserial port to write/read to-from a device.
That device driver is working fine on FC3 machine( kernel version 2.6.12)...
Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Hi All,
I have a device driver that uses UARTserial port to write/read to-from a device.
That device driver is working fine on FC3 machine( kernel version 2.6.12)...
Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Hello guys,
on my Red Hat machine the /bin/mt status command gives the output dev/tape: inappropriate ioctl for device. This messages comes up after the Server has been rebooted.
Anybody an idea?
Thx
masterofdesaster (8 Replies)
I was wondering if its possible to read mouse inputs using ioctl functions somehow ? If it is not too much of trouble can anyone write or even direct me to sample code of ioctl reading someother HID. (2 Replies)
Hi All,
Am finding performance of my SD card using hdparm.
Code:
hdparm -tT /dev/BlockDev0
/dev/BlockDev0:
Timing cached reads: 1118 MB in 2.00 seconds = 558.61 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
ioctl for device
Timing buffered disk... (1 Reply)
Hi
I'm looking for a simple and nice sample for writing a device driver in SCO OpenServer 5.0.7. I'm asked to write a device driver for some usb printer. I have already the linux version of the driver but it won't get compiled. I have some basic knowledge of device drivers phenomena such as kernel... (4 Replies)
I'm a beginner to the Linux programming and trying my hands on some device driver examples while practising. The below code (a trimmed down version of tiny_tty.c from ldd3 book) loads perfectly using insmod and I'm able to see it in /proc/tty/drivers , /proc/modules and device nodes are getting... (1 Reply)