Esempio n. 1
0
int hotplug_add_init(void)
{
	rpc_register_void(NODE_ADD, handle_node_add, 0);
	rpc_register_void(NODE_ADD_ACK, handle_node_add_ack, 0);

	register_proc_service(KSYS_HOTPLUG_ADD, nodes_add);
	return 0;
}
Esempio n. 2
0
int hotplug_remove_init(void)
{
	rpc_register(NODE_POWEROFF, handle_node_poweroff, 0);
	rpc_register_void(NODE_REMOVE, handle_node_remove, 0);
	rpc_register_void(NODE_REMOVE_ACK, handle_node_remove_ack, 0);
	rpc_register_void(NODE_REMOVE_CONFIRM, handle_node_remove_confirm, 0);

	register_proc_service(KSYS_HOTPLUG_REMOVE, nodes_remove);
	register_proc_service(KSYS_HOTPLUG_POWEROFF, nodes_poweroff);
	/* register_proc_service(KSYS_HOTPLUG_REBOOT, nodes_reboot); */

	return 0;
}
Esempio n. 3
0
static void faf_poll_init(void)
{
	int i;

	faf_polled_fd_hash = kmalloc(FAF_POLLED_FD_HASH_SIZE *
				     sizeof(*faf_polled_fd_hash),
				     GFP_KERNEL);
	if (!faf_polled_fd_hash)
		panic("Couldn't allocate FAF poll descriptor table!\n");
	for (i = 0; i < FAF_POLLED_FD_HASH_SIZE; i++)
		INIT_HLIST_HEAD(&faf_polled_fd_hash[i]);

	rpc_register_void(RPC_FAF_POLL_WAIT, handle_faf_poll_wait, 0);
	rpc_register_void(RPC_FAF_POLL_DEQUEUE, handle_faf_poll_dequeue, 0);
}
Esempio n. 4
0
int rpc_monitor_init(void){
	rpc_register_void(RPC_PINGPONG,
			  rpc_pingpong_handler, 0);
	
	init_timer(&rpc_timer);
	rpc_timer.function = rpc_timer_cb;
	rpc_timer.data = 0;
	if(kerrighed_node_id != 0)
		mod_timer(&rpc_timer, jiffies + 10*HZ);
	INIT_WORK(&rpc_work, rpc_worker);

	return 0;
}
Esempio n. 5
0
/* FAF handler Initialisation */
void faf_server_init (void)
{
	rpc_register_void(RPC_FAF_READ, handle_faf_read, 0);
	rpc_register_void(RPC_FAF_WRITE, handle_faf_write, 0);
	rpc_register_void(RPC_FAF_READV, handle_faf_readv, 0);
	rpc_register_void(RPC_FAF_WRITEV, handle_faf_writev, 0);
	faf_poll_init();
	rpc_register_void(RPC_FAF_IOCTL, handle_faf_ioctl, 0);
	rpc_register_void(RPC_FAF_FCNTL, handle_faf_fcntl, 0);

#if BITS_PER_LONG == 32
	rpc_register_void(RPC_FAF_FCNTL64, handle_faf_fcntl64, 0);
#endif

	rpc_register_void(RPC_FAF_FSTAT, handle_faf_fstat, 0);
	rpc_register_void(RPC_FAF_FSTATFS, handle_faf_fstatfs, 0);
	rpc_register_int(RPC_FAF_FSYNC, handle_faf_fsync, 0);
	rpc_register_void(RPC_FAF_FLOCK, handle_faf_flock, 0);
	rpc_register_void(RPC_FAF_LSEEK, handle_faf_lseek, 0);
	rpc_register_void(RPC_FAF_LLSEEK, handle_faf_llseek, 0);
	rpc_register_void(RPC_FAF_D_PATH, handle_faf_d_path, 0);

	rpc_register_int(RPC_FAF_BIND, handle_faf_bind, 0);
	rpc_register_void(RPC_FAF_CONNECT, handle_faf_connect, 0);
	rpc_register_int(RPC_FAF_LISTEN, handle_faf_listen, 0);
	rpc_register_void(RPC_FAF_ACCEPT, handle_faf_accept, 0);
	rpc_register_int(RPC_FAF_GETSOCKNAME, handle_faf_getsockname, 0);
	rpc_register_int(RPC_FAF_GETPEERNAME, handle_faf_getpeername, 0);
	rpc_register_int(RPC_FAF_SHUTDOWN, handle_faf_shutdown, 0);
	rpc_register_void(RPC_FAF_SETSOCKOPT, handle_faf_setsockopt, 0);
	rpc_register_void(RPC_FAF_GETSOCKOPT, handle_faf_getsockopt, 0);
	rpc_register_void(RPC_FAF_SENDMSG, handle_faf_sendmsg, 0);
	rpc_register_void(RPC_FAF_RECVMSG, handle_faf_recvmsg, 0);
	rpc_register_int(RPC_FAF_NOTIFY_CLOSE, handle_faf_notify_close, 0);
}
Esempio n. 6
0
void application_frontier_rpc_init(void)
{
	rpc_register_void(APP_REMOTE_CHKPT, handle_get_appid_from_pid, 0);
}