Greetings; I guess you mean it is a privileged instruction in linux/390 because it isn't in VM. This leads to the strange situation where you need to be a privileged linux user to issue general user CP commands.
Thanks for that info. Dennis Alan Altmark <Alan_Altmark@u To: [EMAIL PROTECTED] s.ibm.com> cc: Sent by: Linux Subject: Re: Hostid Value. on 390 Port <[EMAIL PROTECTED] ARIST.EDU> 03/29/02 08:17 AM Please respond to Linux on 390 Port On Friday, 03/29/2002 at 07:55 CST, "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: > I can't tell you how to get it in C but you shouldn't need root. > > Querying the CPUid is a class G (General/everybody/anybody) command. > > Good Luck! > Dennis You need the Neale's cpint package if you want to issue CP QUERY commands. Diagnose 8 is a privileged instruction and Linux user space programs can't issue it directly. The CPU ID is also available via the STIDP instruction, but it too is privileged. Regards, Alan Altmark Sr. Software Engineer IBM z/VM Development