Spell replys as replies.

MFC after:	1 month
This commit is contained in:
Robert Watson 2008-02-15 12:11:45 +00:00
parent 93b510870f
commit c30ddc8d99
2 changed files with 8 additions and 8 deletions

View file

@ -131,7 +131,7 @@ struct vcomm {
u_long vc_seq;
struct selinfo vc_selproc;
struct queue vc_requests;
struct queue vc_replys;
struct queue vc_replies;
};
#define VC_OPEN(vcp) ((vcp)->vc_requests.forw != NULL)

View file

@ -124,7 +124,7 @@ vc_open(struct cdev *dev, int flag, int mode, struct thread *td)
return (EBUSY);
bzero(&(vcp->vc_selproc), sizeof (struct selinfo));
INIT_QUEUE(vcp->vc_requests);
INIT_QUEUE(vcp->vc_replys);
INIT_QUEUE(vcp->vc_replies);
MARK_VC_OPEN(vcp);
mnt->mi_vfsp = NULL;
mnt->mi_rootvp = NULL;
@ -187,8 +187,8 @@ vc_close(struct cdev *dev, int flag, int mode, struct thread *td)
outstanding_upcalls++;
wakeup(&vmp->vm_sleep);
}
for (vmp = (struct vmsg *)GETNEXT(vcp->vc_replys);
!EOQ(vmp, vcp->vc_replys);
for (vmp = (struct vmsg *)GETNEXT(vcp->vc_replies);
!EOQ(vmp, vcp->vc_replies);
vmp = (struct vmsg *)GETNEXT(vmp->vm_chain)) {
outstanding_upcalls++;
wakeup(&vmp->vm_sleep);
@ -254,7 +254,7 @@ vc_read(struct cdev *dev, struct uio *uiop, int flag)
return (error);
}
vmp->vm_flags |= VM_READ;
INSQUE(vmp->vm_chain, vcp->vc_replys);
INSQUE(vmp->vm_chain, vcp->vc_replies);
return (error);
}
@ -305,13 +305,13 @@ vc_write(struct cdev *dev, struct uio *uiop, int flag)
/*
* Look for the message on the (waiting for) reply queue.
*/
for (vmp = (struct vmsg *)GETNEXT(vcp->vc_replys);
!EOQ(vmp, vcp->vc_replys);
for (vmp = (struct vmsg *)GETNEXT(vcp->vc_replies);
!EOQ(vmp, vcp->vc_replies);
vmp = (struct vmsg *)GETNEXT(vmp->vm_chain)) {
if (vmp->vm_unique == seq)
break;
}
if (EOQ(vmp, vcp->vc_replys)) {
if (EOQ(vmp, vcp->vc_replies)) {
if (codadebug)
myprintf(("vcwrite: msg (%ld, %ld) not found\n",
opcode, seq));