/[rtmk]/rtmk/mutations.h
ViewVC logotype

Diff of /rtmk/mutations.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by jrydberg, Sat Jan 5 00:08:30 2002 UTC revision 1.4 by jrydberg, Tue Jan 29 18:31:45 2002 UTC
# Line 17  Foundation, Inc., 59 Temple Place - Suit Line 17  Foundation, Inc., 59 Temple Place - Suit
17    
18  #include "libkern.h"  #include "libkern.h"
19  #include "vm-syscall.h"  #include "vm-syscall.h"
20    #include "trace.h"
21    
22  typedef struct thread *thread_t;  typedef struct thread *thread_t;
23  typedef struct task *task_t;  typedef struct task *task_t;
# Line 50  static inline kern_return_t convert_port Line 51  static inline kern_return_t convert_port
51    return KERN_SUCCESS;    return KERN_SUCCESS;
52  }  }
53    
54    static inline kern_return_t convert_task_to_port (rtmk_msg_type_t **msgtp,
55                                                      struct task *task)
56    {
57      struct std_mfield_desc *mfield = (struct std_mfield_desc *) *msgtp;
58      struct rtmk_msg_type type =
59      {
60        RTMK_MSG_TYPE_COPY_SEND,
61        32,
62        TRUE,
63        FALSE
64      };
65      
66      mfield->type  = type;
67      mfield->port  = task->task_port;
68    
69      *msgtp = (rtmk_msg_type_t *) (mfield + 1);
70      return KERN_SUCCESS;
71    }
72    
73  static inline kern_return_t convert_port_to_thread (rtmk_msg_type_t **msgtp,  static inline kern_return_t convert_port_to_thread (rtmk_msg_type_t **msgtp,
74                                                      struct thread **thread)                                                      struct thread **thread)
75  {  {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26