From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 275648E8A for ; Tue, 24 Nov 2015 19:07:01 +0100 (CET) Received: by wmww144 with SMTP id w144so37602294wmw.0 for ; Tue, 24 Nov 2015 10:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=+AM3Kph1PeAnK7lfYkC8eg/mep9f8oS5WCR/VWOfk7Y=; b=fpbJ9hIgcTpdKTk4KD1VOM98rZ8DhSfVyUzNxKGQmq2oBAVkA3jmebG+9Tx5+hIDf3 ElJyO4jKtcOi3fSu77snG3GNqZx7bMMWtE5yiJHzSva7tkssWhRGSmXfYBK23Fs429jS CMfSYwA5K4ZnvM/78yi4eEWNKsq/yS0JyzOtY1UxJpm5GGzNV3/BVDv3im0jz7wfSCA9 w/Heb99hNod8XGehoqtMgluJ3yiOnjugj2h8Q4B6ZQrp8v+B4BaNe0iOxsxNop2PZDPq TCKZC1qOloRBn/GIlloC0o5FDGlRp8koUIdQJRss+ZHZWYQjgdZC4yst6BxLjJS0X8uY 2eMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=+AM3Kph1PeAnK7lfYkC8eg/mep9f8oS5WCR/VWOfk7Y=; b=Njg8BwcxsdzF1MJ8DopSuBFm2X4Yfjr2z9TDNtj/MhJyKovCPxFROxhCYnNyVnTPst pInIYLI3umypIYcrqWbOosialKQLvxBzxp//4Y2Zh/DxfO9KqTIQ9H5F2z7uF6yHLpyP mNEV/SzsBrGASd6R/v3jlOaI8wAi54w/RHvRs1zJLE9NR0yqL8JVstJgQ2kmdF+h55MW Q1ei8p3asOCXwINENIsBeV4SfLIbEaaZQjG7+pEGwUSvazKiYnOafiMxmDnXPbr7EUy1 8NToJaAhkB/yU/0TIM34+o4+5RIfTDjEr7vVdEAi6LesTeGcGQ9WVY5pLX7fPeJBtHuQ W9Vg== X-Gm-Message-State: ALoCoQmZKf48eK/Om/EYa8/VemRpXUwRMoerp1xmhTAsY0b55oMKy8/kuixh/LBgAZ9edTuwMM9U X-Received: by 10.194.134.135 with SMTP id pk7mr38390572wjb.111.1448388420894; Tue, 24 Nov 2015 10:07:00 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id gl4sm13856892wjd.17.2015.11.24.10.06.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 10:07:00 -0800 (PST) From: Thomas Monjalon To: Xiaobo Chi Date: Tue, 24 Nov 2015 19:05:42 +0100 Message-ID: <3118012.BOtUj3c8T2@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20151111070721.GX2326@yliu-dev.sh.intel.com> References: <1446789877-11656-1-git-send-email-xiaobo.chi@nokia.com> <1447225043-15404-1-git-send-email-xiaobo.chi@nokia.com> <20151111070721.GX2326@yliu-dev.sh.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] vhost: fix eventfd_link.ko insertion failure problem X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 18:07:01 -0000 > > Problem:if I firstly insert my kmod_test.ko, then insert eventfd_link.ko, > > error will happen with hint " Device or resource busy". This is because > > the default minor device number, 0, has been occupied by my kmod_test.ko . > > > > root@distro:~/test$ lsmod > > Module Size Used by > > kmod_test 927 0 > > vboxsf 35930 4 > > vboxguest 222130 1 vboxsf > > microcode 10315 0 > > autofs4 25051 0 > > root@distro:~/test$ insmod ./eventfd_link.ko > > insmod: ERROR: could not insert module ./eventfd_link.ko: Device or > > resource busy > > > > Explanation: For miscdevices, the major device_no is same, so the minor > > device_no should be set to ditinguish different misc devices; if not set > > the minor, it may fail while insmod due to the default minor value, 0, has > > been used by other miscdevice. MISC_DYNAMIC_MINOR means to let Linux > > kernel dynamically assign one minor devide number while loading. > > > > Signed-off-by: Xiaobo Chi > Acked-by: Yuanhan Liu Applied, thanks