You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
311 B
15 lines
311 B
20 years ago
|
#ifndef _LINUX_SCATTERLIST_H
|
||
|
#define _LINUX_SCATTERLIST_H
|
||
|
|
||
|
static inline void sg_init_one(struct scatterlist *sg,
|
||
|
u8 *buf, unsigned int buflen)
|
||
|
{
|
||
|
memset(sg, 0, sizeof(*sg));
|
||
|
|
||
|
sg->page = virt_to_page(buf);
|
||
|
sg->offset = offset_in_page(buf);
|
||
|
sg->length = buflen;
|
||
|
}
|
||
|
|
||
|
#endif /* _LINUX_SCATTERLIST_H */
|