/* Internal version of prom_getchild that does not alter return values. */ static phandle __prom_getchild(phandle node)
{ unsignedlong flags;
phandle cnode;
/* Internal version of prom_getsibling that does not alter return values. */ static phandle __prom_getsibling(phandle node)
{ unsignedlong flags;
phandle cnode;
/* Return the next sibling of node 'node' or zero if no more siblings *atthislevelofdepthinthetree.
*/
phandle prom_getsibling(phandle node)
{
phandle sibnode;
/* Return the length in bytes of property 'prop' at node 'node'. *Return-1onerror.
*/ int prom_getproplen(phandle node, constchar *prop)
{ int ret; unsignedlong flags;
/* Acquire a property 'prop' at node 'node' and place it in *'buffer'whichhasasizeof'bufsize'.Iftheacquisition *wassuccessfulthelengthwillbereturned,else-1isreturned.
*/ int prom_getproperty(phandle node, constchar *prop, char *buffer, int bufsize)
{ int plen, ret; unsignedlong flags;
/* Acquire an integer property, upon error return the passed default *integer.
*/ int prom_getintdefault(phandle node, char *property, int deflt)
{ int retval;
/* Acquire a property whose value is a string, returns a null *stringonerror.Thecharpointeristheusersuppliedstring *buffer.
*/ void prom_getstring(phandle node, char *prop, char *user_buf, int ubuf_size)
{ int len;
/* Search siblings at 'node_start' for a node with name *'nodename'.Returnnodeifsuccessful,zeroifnot.
*/
phandle prom_searchsiblings(phandle node_start, char *nodename)
{
/* Interal version of nextprop that does not alter return values. */ staticchar *__prom_nextprop(phandle node, char * oprop)
{ unsignedlong flags; char *prop;
/* Set property 'pname' at node 'node' to value 'value' which has a length *of'size'bytes.Returnthenumberofbytesthepromaccepted.
*/ int prom_setprop(phandle node, constchar *pname, char *value, int size)
{ unsignedlong flags; int ret;
if (size == 0) return0; if ((pname == NULL) || (value == NULL)) return0;
spin_lock_irqsave(&prom_lock, flags);
ret = prom_nodeops->no_setprop(node, pname, value, size);
restore_current();
spin_unlock_irqrestore(&prom_lock, flags); return ret;
}
EXPORT_SYMBOL(prom_setprop);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.