VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
shell
sys
linux
include
linux
scatterlist.h
Go to the documentation of this file.
1
#ifndef __VSF_LINUX_SCATTERLIST_H__
2
#define __VSF_LINUX_SCATTERLIST_H__
3
4
struct
scatterlist
{
5
void
*
buf
;
6
unsigned
int
buflen
;
7
};
8
9
static
inline
void
sg_set_buf(
struct
scatterlist
*sg,
const
void
*buf,
unsigned
int
buflen)
10
{
11
sg->
buf
= (
void
*)buf;
12
sg->
buflen
= buflen;
13
}
14
15
static
inline
void
sg_init_one(
struct
scatterlist
*sg,
const
void
*buf,
unsigned
int
buflen)
16
{
17
sg_set_buf(sg, buf, buflen);
18
}
19
20
#endif
scatterlist
Definition
scatterlist.h:4
scatterlist::buflen
unsigned int buflen
Definition
scatterlist.h:6
scatterlist::buf
void * buf
Definition
scatterlist.h:5
Generated from commit:
vsfteam/vsf@f33b89f