sf_buf.h (0543fa5398a5bc65eab8a7c76e713a37856c26e9) | sf_buf.h (a5819cb5b5b5f92d1224e9bf6199d0995aed5283) |
---|---|
1/*- 2 * Copyright (c) 2003 Alan L. Cox <alc@cs.rice.edu> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30#define _MACHINE_SF_BUF_H_ 31 32#include <sys/queue.h> 33 34struct vm_page; 35 36struct sf_buf { 37 LIST_ENTRY(sf_buf) list_entry; /* list of buffers */ | 1/*- 2 * Copyright (c) 2003 Alan L. Cox <alc@cs.rice.edu> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30#define _MACHINE_SF_BUF_H_ 31 32#include <sys/queue.h> 33 34struct vm_page; 35 36struct sf_buf { 37 LIST_ENTRY(sf_buf) list_entry; /* list of buffers */ |
38 TAILQ_ENTRY(sf_buf) free_entry; /* list of buffers */ |
|
38 struct vm_page *m; /* currently mapped page */ 39 vm_offset_t kva; /* va of mapping */ 40 int ref_count; /* usage of this mapping */ 41}; 42 43static __inline vm_offset_t 44sf_buf_kva(struct sf_buf *sf) 45{ --- 12 unchanged lines hidden --- | 39 struct vm_page *m; /* currently mapped page */ 40 vm_offset_t kva; /* va of mapping */ 41 int ref_count; /* usage of this mapping */ 42}; 43 44static __inline vm_offset_t 45sf_buf_kva(struct sf_buf *sf) 46{ --- 12 unchanged lines hidden --- |