<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On Mar 10, 2014, at 10:25 PM, 김찬 &lt;<a href="mailto:ckim@etri.re.kr">ckim@etri.re.kr</a>&gt; wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>P {MARGIN-TOP: 0mm; MARGIN-BOTTOM: 0mm}</style>


<div style="FONT-FAMILY: 굴림; FONT-SIZE: 10pt" id="ezFormProc_div">
<div style="FONT-FAMILY: 굴림" id="msgbody">
<div>Hi,</div>
<div>&nbsp;</div>
<div>This should be a basic question.</div>
<div>Does the regisetr_chrdev function make the device file under /dev directory?</div>
<div>I am running linux on our embedded system and inside vcs_init, register_chrdev is called as below.</div>
<div>&nbsp;</div>
<div>int __init vcs_init(void)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned int i;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (register_chrdev(VCS_MAJOR, "vcs", &amp;vcs_fops))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; panic("unable to get major %d for vcs device", VCS_MAJOR);<br>
</div>
<div>&nbsp;</div>
<div>I can see the&nbsp;function is returning ok but I don't see any vcs* file under /dev.</div>
<div>Does it only register the device on /sys or /proc directory and not under /dev?</div>
<div>Thanks in advance.</div>
<div>&nbsp;</div>
<div>Chan</div>
<div>&nbsp;</div>
</div>
</div>


</div></blockquote><div><br></div>You have to create a device file using 'mknod'<div><br></div><div>Ex: mknod -m 666 /dev/vcs c &lt;major no&gt; &lt;minor no&gt;</div><div><br></div><div><br></div><div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Kernelnewbies mailing list</span><br><span><a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a></span><br><span><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></span><br></div></blockquote></div></body></html>