Let kse_wakeup() take a KSE mailbox pointer argument.
Reviewed by: julian
This commit is contained in:
parent
056df6de99
commit
9301eb9484
@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
|
|||||||
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
||||||
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
||||||
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
||||||
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
{ AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
||||||
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
||||||
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
||||||
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
||||||
|
@ -546,7 +546,7 @@
|
|||||||
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
||||||
int flags); }
|
int flags); }
|
||||||
379 NOPROTO BSD { int kse_exit(void); }
|
379 NOPROTO BSD { int kse_exit(void); }
|
||||||
380 NOPROTO BSD { int kse_wakeup(void); }
|
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
|
||||||
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
||||||
int newgroup); }
|
int newgroup); }
|
||||||
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
||||||
|
@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
|
|||||||
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
||||||
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
||||||
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
||||||
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
{ AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
||||||
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
||||||
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
||||||
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
||||||
|
@ -546,7 +546,7 @@
|
|||||||
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
||||||
int flags); }
|
int flags); }
|
||||||
379 NOPROTO BSD { int kse_exit(void); }
|
379 NOPROTO BSD { int kse_exit(void); }
|
||||||
380 NOPROTO BSD { int kse_wakeup(void); }
|
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
|
||||||
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
||||||
int newgroup); }
|
int newgroup); }
|
||||||
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
||||||
|
@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
|
|||||||
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
||||||
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
||||||
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
||||||
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
{ AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
||||||
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
||||||
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
||||||
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
||||||
|
@ -546,7 +546,7 @@
|
|||||||
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
||||||
int flags); }
|
int flags); }
|
||||||
379 NOPROTO BSD { int kse_exit(void); }
|
379 NOPROTO BSD { int kse_exit(void); }
|
||||||
380 NOPROTO BSD { int kse_wakeup(void); }
|
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
|
||||||
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
|
||||||
int newgroup); }
|
int newgroup); }
|
||||||
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
||||||
|
@ -408,7 +408,7 @@ struct sysent sysent[] = {
|
|||||||
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
|
||||||
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
|
||||||
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
|
||||||
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
{ AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
|
||||||
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
|
||||||
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
|
||||||
{ SYF_MPSAFE | 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
{ SYF_MPSAFE | 0, (sy_call_t *)kse_release }, /* 383 = kse_release */
|
||||||
|
@ -330,6 +330,9 @@ kse_release(struct thread *td, struct kse_release_args *uap)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* struct kse_wakeup_args {
|
||||||
|
struct kse_mailbox *mbx;
|
||||||
|
}; */
|
||||||
int
|
int
|
||||||
kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
|
kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
|
||||||
{
|
{
|
||||||
|
@ -548,7 +548,7 @@
|
|||||||
378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
|
||||||
int flags); }
|
int flags); }
|
||||||
379 STD BSD { int kse_exit(void); }
|
379 STD BSD { int kse_exit(void); }
|
||||||
380 STD BSD { int kse_wakeup(void); }
|
380 STD BSD { int kse_wakeup(struct kse_mailbox *mbx); }
|
||||||
381 STD BSD { int kse_create(struct kse_mailbox *mbx, \
|
381 STD BSD { int kse_create(struct kse_mailbox *mbx, \
|
||||||
int newgroup); }
|
int newgroup); }
|
||||||
382 STD BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
382 STD BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
|
||||||
|
@ -81,7 +81,7 @@ int kse_create(struct kse_mailbox *, int);
|
|||||||
int kse_exit(void);
|
int kse_exit(void);
|
||||||
int kse_release(void);
|
int kse_release(void);
|
||||||
int kse_thr_interrupt(struct kse_thr_mailbox *);
|
int kse_thr_interrupt(struct kse_thr_mailbox *);
|
||||||
int kse_wakeup(void);
|
int kse_wakeup(struct kse_mailbox *);
|
||||||
#endif /* !_KERNEL */
|
#endif /* !_KERNEL */
|
||||||
|
|
||||||
#endif /* !_SYS_KSE_H_ */
|
#endif /* !_SYS_KSE_H_ */
|
||||||
|
@ -1062,7 +1062,7 @@ struct kse_exit_args {
|
|||||||
register_t dummy;
|
register_t dummy;
|
||||||
};
|
};
|
||||||
struct kse_wakeup_args {
|
struct kse_wakeup_args {
|
||||||
register_t dummy;
|
char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)];
|
||||||
};
|
};
|
||||||
struct kse_create_args {
|
struct kse_create_args {
|
||||||
char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)];
|
char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)];
|
||||||
|
Loading…
Reference in New Issue
Block a user