Print this page
3625 we only need one thread_create_intr

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/proc.h
          +++ new/usr/src/uts/common/sys/proc.h
↓ open down ↓ 665 lines elided ↑ open up ↑
 666  666  
 667  667  extern void     set_proc_pre_sys(proc_t *p);
 668  668  extern void     set_proc_post_sys(proc_t *p);
 669  669  extern void     set_proc_sys(proc_t *p);
 670  670  extern void     set_proc_ast(proc_t *p);
 671  671  extern void     set_all_proc_sys(void);
 672  672  extern void     set_all_zone_usr_proc_sys(zoneid_t);
 673  673  
 674  674  /* thread function prototypes */
 675  675  
 676      -extern  kthread_t       *thread_create(
 677      -        caddr_t         stk,
 678      -        size_t          stksize,
 679      -        void            (*proc)(),
 680      -        void            *arg,
 681      -        size_t          len,
 682      -        proc_t          *pp,
 683      -        int             state,
 684      -        pri_t           pri);
      676 +extern  kthread_t *thread_create(caddr_t, size_t, void (*)(), void *,
      677 +    size_t, proc_t *, int, pri_t);
 685  678  extern  void    thread_exit(void) __NORETURN;
 686  679  extern  void    thread_free(kthread_t *);
 687  680  extern  void    thread_rele(kthread_t *);
 688  681  extern  void    thread_join(kt_did_t);
 689  682  extern  int     reaper(void);
 690  683  extern  void    installctx(kthread_t *, void *, void (*)(), void (*)(),
 691  684      void (*)(), void (*)(), void (*)(), void (*)());
 692  685  extern  int     removectx(kthread_t *, void *, void (*)(), void (*)(),
 693  686      void (*)(), void (*)(), void (*)(), void (*)());
 694  687  extern  void    savectx(kthread_t *);
↓ open down ↓ 19 lines elided ↑ open up ↑
 714  707  extern  void    tsd_destroy(uint_t *);
 715  708  extern  void    *tsd_getcreate(uint_t *, void (*)(void *), void *(*)(void));
 716  709  extern  void    *tsd_get(uint_t);
 717  710  extern  int     tsd_set(uint_t, void *);
 718  711  extern  void    tsd_exit(void);
 719  712  extern  void    *tsd_agent_get(kthread_t *, uint_t);
 720  713  extern  int     tsd_agent_set(kthread_t *, uint_t, void *);
 721  714  
 722  715  /* lwp function prototypes */
 723  716  
 724      -extern kthread_t *lwp_kernel_create(proc_t *, void (*)(), void *, int, pri_t);
 725      -extern  klwp_t          *lwp_create(
 726      -        void            (*proc)(),
 727      -        caddr_t         arg,
 728      -        size_t          len,
 729      -        proc_t          *p,
 730      -        int             state,
 731      -        int             pri,
 732      -        const k_sigset_t *smask,
 733      -        int             cid,
 734      -        id_t            lwpid);
      717 +extern  kthread_t *lwp_kernel_create(proc_t *, void (*)(), void *, int, pri_t);
      718 +extern  klwp_t  *lwp_create(void (*)(), caddr_t, size_t, proc_t *, int, int,
      719 +    const k_sigset_t *, int, id_t);
 735  720  extern  kthread_t *idtot(proc_t *, id_t);
 736  721  extern  void    lwp_hash_in(proc_t *, lwpent_t *, tidhash_t *, uint_t, int);
 737  722  extern  void    lwp_hash_out(proc_t *, id_t);
 738  723  extern  lwpdir_t *lwp_hash_lookup(proc_t *, id_t);
 739  724  extern  lwpdir_t *lwp_hash_lookup_and_lock(proc_t *, id_t, kmutex_t **);
 740  725  extern  void    lwp_create_done(kthread_t *);
 741  726  extern  void    lwp_exit(void);
 742  727  extern  void    lwp_pcb_exit(void);
 743  728  extern  void    lwp_cleanup(void);
 744  729  extern  int     lwp_suspend(kthread_t *);
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX