esbbcall(9f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

esbbcall(9f)

esbbcall(9F)                   Kernel Functions                   esbbcall(9F)

NAME
       esbbcall - call function when buffer is available

SYNOPSIS
       #include <sys/stream.h>

       bufcall_id_t esbbcall(uint_t pri, void (*func)(void *arg),
            void(arg));

INTERFACE LEVEL
       Architecture independent level 1 (DDI/DKI).

PARAMETERS
       pri     Priority  of allocation request (to be used by allocb(9F) func‐
               tion, called by esbbcall()).


       func    Function to be called when buffer becomes available.


       arg     Argument to func.


DESCRIPTION
       The esbbcall() function, like bufcall(9F), serves as a timeout(9F) call
       of indeterminate length. If esballoc(9F) is unable to allocate  a  mes‐
       sage  and  data  block  header  to go with its externally supplied data
       buffer, esbbcall() can be used to schedule  the  routine  func,  to  be
       called  with the argument arg when a buffer becomes available. The func
       argument can be a routine that calls esballoc(9F) or it may be  another
       kernel function.

RETURN VALUES
       On  success,  a  bufcall  IDis returned. On failure, 0 is returned. The
       value returned from a successful call should be saved for possible  fu‐
       ture use with unbufcall() should it become necessary to cancel the esb‐
       bcall() request (as at driver close time).

CONTEXT
       The  esbbcall()  function can be called from user, interrupt, or kernel
       context.

SEE ALSO
       allocb(9F),  bufcall(9F),  esballoc(9F),  timeout(9F),   unbufcall(9F),
       datab(9S)


       Writing  Device  Drivers  in  Oracle  Solaris 11.4  STREAMS Programming
       Guide

Oracle Solaris 11.4               16 Jan 2006                     esbbcall(9F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3