MCQs > IT & Programming > Kernel Programming - Solaris MCQs > Basic Kernel Programming - Solaris MCQs

Basic Kernel Programming - Solaris MCQ

1. Which of the following structures keeps track of the in memory user data pages associated with a file?

Answer

Correct Answer: the private data maintained by a filesystem attached to a vnode.

Note: This Question is unanswered, help us to find answer for this one

2. Which of the following data is penalized (swapped) first if the OS detects low memory conditions?

Answer

Correct Answer: Page Cache pages.

Note: This Question is unanswered, help us to find answer for this one

3. Where are the 64 bit kernel modules located?

Answer

Correct Answer: /kernel/drv/sparcv9/

Note: This Question is unanswered, help us to find answer for this one

4. What is the maximum number of registers available to a function at any time?

Answer

Correct Answer: 32

Note: This Question is unanswered, help us to find answer for this one

5. What are the names of the symbol file and the memory image files following a kernel dump?

Answer

Correct Answer: unix.X and vmcore.X where X is an integer.

Note: This Question is unanswered, help us to find answer for this one

6. Which of the following is the correct locking hierarchy for filesystems which implement the mmap interface?

Answer

Correct Answer: rwlock; glock

Note: This Question is unanswered, help us to find answer for this one

7. Which of the following registers contains the thread pointer of the thread that is currently being run?

Answer

Correct Answer: %g7

Note: This Question is unanswered, help us to find answer for this one

8. Why should floating point operations be avoided in drivers?

Answer

Correct Answer: Because the kernel does not support floating point operations.

Note: This Question is unanswered, help us to find answer for this one

9. What does the cv_wait_sig interface do?

Answer

Correct Answer: It waits on the CV until the thread receives a wakeup. It returns 0 if the thread receives an external signal (sent via kill(2)).

Note: This Question is unanswered, help us to find answer for this one

10. Is it possible to take a core dump of a live system?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

11. Which of the following interfaces must be implemented by every loadable driver?

Answer

Correct Answer: _init; _fini; probe

Note: This Question is unanswered, help us to find answer for this one

12. Which of the following interfaces is equivalent to acquiring a lock?

Answer

Correct Answer: sema_p

Note: This Question is unanswered, help us to find answer for this one

13. Following a panic and a core dump, what is done to recreate the core files for debugging?

Answer

Correct Answer: Use savecore to create the core files.

Note: This Question is unanswered, help us to find answer for this one

14. Which of the following sparc instructions causes a register window context to be created?

Answer

Correct Answer: save

Note: This Question is unanswered, help us to find answer for this one

15.

Where is the following memory allocation type typically employed?

memp = kmem_alloc(size, KM_NOSLEEP);

Answer

Correct Answer:

In the interrupt context.


Note: This Question is unanswered, help us to find answer for this one

16. Which of the following does the OS use for caching user data?

Answer

Correct Answer: Page Cache

Note: This Question is unanswered, help us to find answer for this one

17. Which of the following CV interfaces can be used to wakeup exactly one waiter?

Answer

Correct Answer: cv_signal

Note: This Question is unanswered, help us to find answer for this one

18. Which of the following locks is used to serialize reads and writes on a vnode?

Answer

Correct Answer: The VOP_RWLOCK.

Note: This Question is unanswered, help us to find answer for this one

19. Which of the following kadb macros is useful in determining the panic address?