Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > What type of variables are these?

What type of variables are these?
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Jun 4, 2004, 08:53 PM
 
Hi - I'm on my continuing saga of doing kernel level rerouting, when I came around to a related question. Essentially, I have these types for variables whose definitions I cannot find. Where is proc defined? Where is register_t defined? What are they used for?

struct proc *p

register_t *retva


Thanks,
Matt Fahrenbacher
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 4, 2004, 10:15 PM
 
Originally posted by Ghoser777:
Hi - I'm on my continuing saga of doing kernel level rerouting, when I came around to a related question. Essentially, I have these types for variables whose definitions I cannot find. Where is proc defined? Where is register_t defined? What are they used for?

struct proc *p

register_t *retva
You'd have to look in the header files for a definition. proc is a C struct. register_t is a type.

register_t is defined in /usr/includes/ppc/types.h as int32_t, which in turn is defined as an int.

proc is defined in /usr/includes/sys/proc.h. I was going to post it here, but it is quite a large structure. Instead I will just post this description from the .h file:

Code:
/* * Description of a process. * * This structure contains the information needed to manage a thread of * control, known in UN*X as a process; it has references to substructures * containing descriptions of things that the process uses, but may share * with related processes. The process structure and the substructures * are always addressible except for those marked "(PROC ONLY)" below, * which might be addressible only on a processor on which the process * is running. */
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:33 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2