mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
Spell replys as replies.
MFC after: 1 month
This commit is contained in:
parent
93b510870f
commit
c30ddc8d99
2 changed files with 8 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue