This may belong in the C Programming forum, but here goes anyway...
What would cause a bus error? I searched google for a cause, but came up with some conflicting reports...
Could it be caused by disk space?
A lot of the pages I found mentioned linking with the incorrect versions of the... (4 Replies)
Hi there
I am running soalris 9 on a sun fire 480r and all of a sudden (today) whenever the users run the command `top` we get the following message `bus error`
does anybody have any information on what this is all about and whether there is a routine i can perform to gather more... (3 Replies)
Hi!
I've got a program which runs fine under Linux, but I have compiled it to run under SunOS 5.8 in a Sparc computer, and now it sometimes fails with "bus error".
Ussing gdb I surfed to the error line, which is
*pointer = some_vector;
where some_vector is a 16 byte struct (4 integers)... (1 Reply)
Hi there,
I have two SunBlade 2000s that I want to connect to a single D1000. I am told that I need to do a split bus mode. I don't really understand what that means. Does that mean that half of the storage disks will be assigned to one host and the others to the other host? How do I get... (18 Replies)
Hi all,
I am getting bus error problem in SunOS. Can you please help me out in this regard.
Actually, my entire code till the last line has been executed. But after tht i am getting a bus error. Please help me.
Thanks in advance.
Charu. (4 Replies)
I am getting bus error when i include "#!/bin/ksh". If i remove interpreter then script is working. Can anyone explain this and how can i avoid this error?
Operating System is HP-UX B.11.23 U 9000/800 1091834454 (2 Replies)
Hi everyone,
I have a GUI project and when I run it and left in idle state for a long time(there is nothing done, just opened GUI, no more actions),I get bus error after trying to do anything with it.
I've tried to build it in debug mode and use gdb, but I don't get any error in debug mode.It... (3 Replies)
Hi all,
I am writing a phonebook program to store names and number using a list. Here is the code for the function which allows the user to enter the name and number (where the error occurs).
//THIS FUNCTION ADDS A NEW ENTRY TO THE phonebook_list
void insert(void){
//variables
int... (5 Replies)
Hi all,
OS is Solaros 10 Sparc
While doing Netbackup upgradation to 7.5 , the server was asked to reboot.
But then it came up in single user mode,
and after I typed format command it showed some disk error.
bash-3.00# format
Searching for disks...WARNING:... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
LEARN ABOUT NETBSD
callback_unregister
CALLBACK(9) BSD Kernel Developer's Manual CALLBACK(9)NAME
callback -- generic callback interface
SYNOPSIS
#include <sys/callback.h>
void
callback_head_init(struct callback_head *ch, int ipl);
void
callback_head_destroy(struct callback_head *ch);
void
callback_register(struct callback_head *ch, struct callback_entry *ce, void *obj, int (*fn)(struct callback_entry *, void *, void *));
void
callback_unregister(struct callback_head *ch, struct callback_entry *ce);
int
callback_run_roundrobin(struct callback_head *ch, void *arg);
DESCRIPTION
The generic callback interface allows lower-level layer code to execute a registered function, or set of functions, from the higher-level
layer.
Registered functions must return one of these constants:
CALLBACK_CHAIN_CONTINUE
Indicates that the function call was successful. The following functions in the chain will be called.
CALLBACK_CHAIN_ABORT
Indicates a failure case in the function call. Any following functions in the chain will not be executed.
FUNCTIONS
The callback structure callback_head should be initialized and destroyed using the functions described below. This structure contains the
list of callback entries and other internal data.
The callback_entry structure is an entry, normally associated with the higher-level object. It contains the internal data of the callback
interface.
callback_head_init(ch, ipl)
Initialize the callback structure specified by ch. The highest IPL at which this callback can be used is specified by ipl.
callback_head_destroy(ch)
Destroy the callback structure specified by ch. The caller must unregister all functions before destroying the callback structure.
callback_register(ch, ce, obj, fn)
Register the callback function in the callback structure specified by ch. ce should point to the entry structure of the callback
object. The callback object itself is specified by obj. The function pointer is specified by fn.
callback_unregister(ch, ce)
Unregister the callback function from the structure specified by ch. The entry should be passed as ce. This function may block.
callback_run_roundrobin(ch, arg)
Executes all functions registered in the callback structure, specified by ch. The functions are executed in round-robin fashion.
The value of arg will be passed to the callback functions.
CODE REFERENCES
The callback interface is implemented within the file sys/kern/subr_callback.c.
SEE ALSO intro(9)BSD October 28, 2009 BSD