Hi all,
Sometime back, had put up a Q regarding hiding perl code.
A: There is a utility known as 'pp' which comes along with PAR. Downloaded from
CPAN. These people have done wonderful work I must say. Cool executables from
perl scripts.
Have one more... (4 Replies)
Hello guys,
Does anyone can help me?
I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore.
Any fresh eyes could help me to see what and where the code is wrong?
<?
if... (6 Replies)
Here is some sample PHP code you can run if you have a PHP web application that uses code or images from an ad server, image server, or content deliver network, and you want to check if it is working and if not, failover to another one:
<?php
$current_server = "server.domain.com";
// set... (0 Replies)
Hello everyone,
I'm trying to modify a php file to perform 2 actions in an if statement.
// If the delete button is pressed
if(isset($_GET) && isset($_GET))
{
if(!mysql_query("DELETE FROM users WHERE User='".$_GET."'",$link))
... (2 Replies)
Wrote some PHP code today to make the Who Is Online (WOL) in the forums work properly with the new home page:
Wrote this global plugin to add the location to both the user table (for members) and session table (for guests + registered users)
<?php
if (THIS_SCRIPT != 'misc' and... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT NETBSD
callback_run_roundrobin
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