Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757080Ab0KAJyz (ORCPT ); Mon, 1 Nov 2010 05:54:55 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:63498 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017Ab0KAJyx convert rfc822-to-8bit (ORCPT ); Mon, 1 Nov 2010 05:54:53 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ofOxNH+SSXMIJVxuk/I5jFTec/iLjYTibM78x6kzjB0dMloeAFvBhvYBeiLNES2pRW DOt8WyNRJ32ZNF+SGVKU+WmxJ3n48opr++IF8Fr7HwdFovtu0zi+Fx5AzGcE8xEgkCRv JAiQG3/qBT99iH9S0iBXrDYdpMXuKcJWwbizM= MIME-Version: 1.0 In-Reply-To: References: <20101101092947.GB6023@cr0.nay.redhat.com> Date: Mon, 1 Nov 2010 17:54:52 +0800 Message-ID: Subject: Re: How many params can be accept by kernel module at most? From: tingwei liu To: =?UTF-8?Q?Am=C3=A9rico_Wang?= Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1229 Lines: 31 My description is correct or not ? 2010/11/1 tingwei liu : > The params are transferred by command line. And the params are all in > program statically. So the stack size determine the params number. For > example: stack size is 4K,and params are unsigned int type with 4 > bytes,so the max number of params is 1 thousand。 > > 2010/11/1 tingwei liu : >> What's the meaning of dynamically and statically? >> You response help me much. Thank you >> >> 2010/11/1 Américo Wang : >>> On Mon, Nov 01, 2010 at 02:17:23PM +0800, tingwei liu wrote: >>>>How many params can be accept by kernel module at most? >>> >>> If you mean dynamically, these parameters are passed as a whole to kernel, >>> from the source code, you can see the max length is ~0UL>>1. >>> >>> If you mean statically, IOW, the max paramenters you can provide in your module, >>> this is limited by ELF section size. >>> >>> Hope this helps. >>> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/