Lines Matching refs:swapinfo
47 * Associated with each swap area is a swapinfo structure. These
106 struct swapinfo *swapinfo;
108 static struct swapinfo *silast;
111 static u_offset_t swap_getoff(struct swapinfo *);
114 static int swapslot_free(struct vnode *, u_offset_t, struct swapinfo *);
146 struct swapinfo *sip;
171 sip = swapinfo;
203 silast = swapinfo;
218 swap_getoff(struct swapinfo *sip)
315 struct swapinfo *sip;
319 sip = swapinfo;
375 struct swapinfo *sip;
382 sip = swapinfo;
408 struct swapinfo **sipp, *osip;
420 for (sipp = &swapinfo; (osip = *sipp) != NULL; sipp = &osip->si_next) {
441 struct swapinfo *sip, *csip, *tsip;
595 for (sip = swapinfo, nswap = 0;
638 * traversing the swapinfo list, and we can't be doing copyouts
641 csip = kmem_zalloc(tmp_nswapfiles * sizeof (struct swapinfo),
653 tmp_nswapfiles * sizeof (struct swapinfo));
657 for (sip = swapinfo, tsip = csip, tpname = pname, nswap = 0;
702 kmem_free(csip, tmp_nswapfiles * sizeof (struct swapinfo));
777 struct swapinfo *sip, *csip, *tsip;
890 for (sip = swapinfo, nswap = 0;
933 * traversing the swapinfo list, and we can't be doing copyouts
950 for (sip = swapinfo, tsip = csip, tpname = pname, nswap = 0;
1075 struct swapinfo **sipp, *nsip = NULL, *esip = NULL;
1211 /* Allocate and partially set up the new swapinfo */
1212 nsip = kmem_zalloc(sizeof (struct swapinfo), KM_SLEEP);
1223 SWAP_PRINT(SW_CTL, "swapadd: allocating swapinfo for %s, %ld pages\n",
1247 * during kmem_alloc()) while we're setting up the swapinfo.
1250 for (sipp = &swapinfo; (esip = *sipp) != NULL; sipp = &esip->si_next) {
1367 struct swapinfo **sipp, *osip = NULL;
1386 for (sipp = &swapinfo; (osip = *sipp) != NULL; sipp = &osip->si_next) {
1525 /* Now remove it from the swapinfo list */
1526 for (sipp = &swapinfo; *sipp != NULL; sipp = &(*sipp)->si_next) {
1534 silast = swapinfo;
1561 * Free up a physical swap slot on swapinfo sip, currently in use by the
1568 struct swapinfo *sip)