This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
//#include <time.h> | |
#include "bls.h" | |
int main(int argc, char **argv) | |
{ | |
//clock_t ci = clock(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int dev_im_mq; | |
static int hb_param_idx; | |
static int hb_param_type; | |
int SetDeviceState(fd_ctxt *fd, int *buf) | |
{ | |
/* ... */ | |
switch(buf[0]) | |
{ | |
/* ... */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int _ioctlv(int fd, int cmd, u32 num_in, u32 num_io, ioctlv_vec *vec, ...) | |
{ | |
/* ... */ | |
dev_ctxt *dev = get_dev(...); | |
u32 num_total = num_int + num_out; | |
/* ... */ | |
if(num_total <= dev->max_vecs) | |
{ | |
/* Copy in vectors if num_total <= 8 else use external vectors. */ | |
/* Check vector buffer addrs. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int _ioctlv(int fd, int cmd, u32 num_in, u32 num_io, ioctlv_vec *vec, ...) | |
{ | |
/* ... */ | |
dev_ctxt *dev = get_dev(...); | |
u32 num_total = num_int + num_out; | |
/* ... */ | |
/* Copy in vectors if num_total <= 8 else use external vectors. */ | |
/* Check vector buffer addrs. */ | |
/* ... */ | |
} |