Changes between Initial Version and Version 1 of Ticket #57, comment 1


Ignore:
Timestamp:
Oct 31, 2010, 5:37:15 PM (14 years ago)
Author:
Nicolas Pouillon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57, comment 1

    initial v1  
    1 Could we do:
     1Could we do something like:
     2
     3= API proposal =
    24
    35{{{
     
    4446}}}
    4547
    46 Then to access funcs of type BAR:
     48== Accessing functions of a given class ==
    4749
    4850{{{
     
    6264    return &drv->funcs[offset];
    6365}
     66}}}
    6467
     68== Example for implementing a generic function of class BAR ==
     69
     70{{{
     71#!c
    6572void device_bar_op1(struct device_s *dev, …)
    6673{
     
    7279}}}
    7380
     81= Rationale =
     82
    7483Added from current code, there is a new indirection through {{{drv->funcs_offset}}}.
    7584 * There is a cost for a byte load in addition to current implementation