smb_iod.c (e06f502c9e76b300c1844c1c6e0af103751f6c12) | smb_iod.c (69527b11bb5e1bb234a29eed864896cb1a13d652) |
---|---|
1/*- 2 * Copyright (c) 2000-2001 Boris Popov 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 --- 676 unchanged lines hidden (view full) --- 685 smb_sl_init(&iod->iod_rqlock, "90rql"); 686 TAILQ_INIT(&iod->iod_rqlist); 687 smb_sl_init(&iod->iod_evlock, "90evl"); 688 STAILQ_INIT(&iod->iod_evlist); 689 error = kproc_create(smb_iod_thread, iod, &iod->iod_p, 690 RFNOWAIT, 0, "smbiod%d", iod->iod_id); 691 if (error) { 692 SMBERROR("can't start smbiod: %d", error); | 1/*- 2 * Copyright (c) 2000-2001 Boris Popov 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 --- 676 unchanged lines hidden (view full) --- 685 smb_sl_init(&iod->iod_rqlock, "90rql"); 686 TAILQ_INIT(&iod->iod_rqlist); 687 smb_sl_init(&iod->iod_evlock, "90evl"); 688 STAILQ_INIT(&iod->iod_evlist); 689 error = kproc_create(smb_iod_thread, iod, &iod->iod_p, 690 RFNOWAIT, 0, "smbiod%d", iod->iod_id); 691 if (error) { 692 SMBERROR("can't start smbiod: %d", error); |
693 vcp->vc_iod = NULL; 694 smb_sl_destroy(&iod->iod_rqlock); 695 smb_sl_destroy(&iod->iod_evlock); |
|
693 free(iod, M_SMBIOD); 694 return error; 695 } 696 return 0; 697} 698 699int 700smb_iod_destroy(struct smbiod *iod) --- 17 unchanged lines hidden --- | 696 free(iod, M_SMBIOD); 697 return error; 698 } 699 return 0; 700} 701 702int 703smb_iod_destroy(struct smbiod *iod) --- 17 unchanged lines hidden --- |