Questions tagged [opensolaris]

OpenSolaris was an open source computer operating system based on Solaris created by Sun Microsystems.

OpenSolaris was an open source computer operating system based on Solaris created by Sun Microsystems. (wikipedia)

Related tags

82 questions
1
vote
1 answer

OpenSolaris 11.2 - understanding some of prtconf output

While browsing through 'prtconf' output, I found the following properties for the PCIe device I'm implementing driver for: % prtconf -v | less ... name='pci-msix-capid-pointer' type=int items=1 value=000000b0 name='pci-msi-capid-pointer'…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
6 answers

How do you get nano/pico running on OpenSolaris?

We're setting up an OpenSolaris server on Amazon's EC2 service. However, vi/vim doesn't work properly, and pkg doesn't have nano/pico. Is there any other text-editor maybe?
jimeh
  • 1,391
  • 1
  • 16
  • 32
1
vote
0 answers

OracleSolaris 11.2 and bit operations

Are there any standard bit manipulation routines/macros available, e.g. SETBIT, CLEARBIT-like. I found atomic bit operations in man -s9f atomic_bits, is there anything else? Thanks.
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

OracleSolaris 11.2 - ctags and vi

On a freshly installed OracleSolaris I have ctags from base-developer-utilities package. It doesn't support recursive, so I generate tags as follows: % cd my_sources; rm -f tags; touch tags % find . -name '*.c' -o -name '*.h' -exec ctags -v -u {}…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

OracleSolaris 11.2 - locate capability of PCI device

I need solaris analogue to linux's pci_find_capability kernel function. I grepped through /usr/src/ for some similarities, but didn't find anything close to it. What do pci/pcie drivers normally use to find capabilities supported by devices? Thanks.
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

OracleSolaris 11.2 -- character device in /dev/*

Normally in Linux PCI drivers may expose a control interface to user-land via a character device, e.g. /dev/drv_ctl, and a user application can read/write I/O control commands with ioctl() on the open file descriptor. In Linux we create this with…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
2 answers

OracleSolaris 11.2 -- similar mechanism to Linux procfs

In Linux it is common to use proc FS as a means to talk with a kernel module, receive statistics from the kernel or set up some flags. What can be used for these in Solaris?
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

porting PCIe driver from Linux to OracleSolaris

I need to port a PCIe Linux driver to Oracle Solaris 11.2 (previously OpenSolaris). Before the driver was tested under kernel 2.6.32-36. Fortunately, the driver was implemented in such a way that one portion is OS/platform specific (PCI…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

analogue to /proc/cpuinfo and /proc/meminfo in OpenSolaris

I'm trying to figure out the way to see number of CPU cores available, its frequency, cpu flags etc. as well as RAM amount, i.e. what I can get in Linux via /proc/cpuinfo and /proc/meminfo. Both OpenSolaris and OpenIndiana only maintain process IDs…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
0 answers

writing device drivers for OpenIndiana

Given that OpenIndiana is a fork of OpenSolaris, is it fair to say that writing device drivers for OpenIndiana should not be different from writing it on OpenSolaris? I'm also looking for some references, or a "linux device drivers"-alike manual for…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
0 answers

Why does the command only work in gawk?

I have 2 hosts: one is running Linux, while the other is OmniOS. The awk on Linux is gawk: [root@localhost ~]# which awk /bin/awk [root@localhost ~]# ls -lt /bin/awk lrwxrwxrwx. 1 root root 4 Jan 22 2014 /bin/awk -> gawk And running the…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
1
vote
0 answers

python subprocess Popen hangs

OpenSolaris derivate (NexentaStor), python 2.5.5 I've seen numerous examples and many seem to indicate that the problem is a deadlock. I'm not writing to stdin so I think the problem is that one of the shell commands exits prematurely. What's…
user135361
  • 125
  • 1
  • 6
1
vote
1 answer

Method of programmatically getting CPU time for thread, in C, that works on both OpenSolaris and Linux

I have a small daemon that I'm writing in C and I need a way to get the current CPU time on a thread. Linux apparently supplies a number of ways to go about doing this, clock_gettime(CLOCK_THREAD_CPUTIME_ID, ...), pthread_getcpuclockid(),…
lazyconfabulator
  • 477
  • 2
  • 6
  • 13
1
vote
1 answer

On Solaris, how do you mount a second zfs system disk for diagnostics?

I've got two hard disks in my computer, and have installed Solaris 10u8 on the first and Opensolaris 2010.3 (dev onnv_134) on the second. Both systems uses ZFS and were independently created with a zpool name of 'rpool'. While running Solaris 10u8…
Matt Ball
  • 1,434
  • 2
  • 17
  • 24
1
vote
2 answers

makefile from Linux doesn't work in OpenSolaris

In OpenSolaris OS, when I run makefile generated by Eclipse CDT on the Linux OS, I get an error on the first -include line. The same error was in FreeBSD, and was solved by executing gmake instead of make. In OpenSolaris (just installed) gmake…
Alex F
  • 42,307
  • 41
  • 144
  • 212