mtop
struct mtop t_op;
struct mtop mt_com;
struct mtop mb;
struct mtop mb;
struct mtop mb;
struct mtop *mtop = arg;
mtop->mt_op, mtop->mt_count);
struct mtop offl;
struct mtop tcom;
struct mtop *op;
op = (struct mtop *)data;
struct mtop *op;
op = (struct mtop *)data;
struct mtop mt;
struct mtop *op;
op = (struct mtop *)data;
struct mtop *op;
op = (struct mtop *)data;
switch ((short)((struct mtop*)addr)->mt_op) {
for (count = ((struct mtop*)addr)->mt_count; count > 0;
struct mtop *mtop;
mtop = (void *)data;
if (mtop->mt_op == MTWEOF) {
while (mtop->mt_count-- > 0)
if ((error = mtcmd(mt, mtop->mt_op, 0, 0)))
error = mtcmd(mt, mtop->mt_op, mtop->mt_count, 0);
tscommand(sc, dev, mtop->mt_op, scount);
printf("error in ioctl %d\n", mtop->mt_op);
struct mtop *mtop; /* mag tape cmd op to perform */
mtop = (struct mtop *)data;
switch (mtop->mt_op) {
callcount = mtop->mt_count;
scount = mtop->mt_count;
printf("ioctl %d not implemented.\n", mtop->mt_op);
printf("invalid ioctl %d\n", mtop->mt_op);
struct mtop *mt = (struct mtop *) arg;
struct mbuf *mtop = m;
KASSERT((mtop->m_flags & M_PKTHDR) != 0);
mtop->m_pkthdr.pattr_class =
mtop->m_pkthdr.pattr_af = af;
mtop->m_pkthdr.pattr_hdr = hdr;
mtop->m_pkthdr.pattr_class = NULL;
mtop->m_pkthdr.pattr_hdr = NULL;
mtop->m_pkthdr.pattr_af = AF_UNSPEC;
#define MTIOCTOP _IOW('m', 1, struct mtop) /* do a mag tape op */
struct mtop m;
struct mtop op;
struct mtop mtop;
mtop.mt_op = atoi(op);
mtop.mt_count = atoi(count);
if (ioctl(tape, MTIOCTOP, (char *)&mtop) < 0)
rval = mtop.mt_count;